Replaced access to .Context with .ctx

This commit is contained in:
Kwoth
2021-07-14 21:51:15 +02:00
parent 3c33c55dda
commit 42d623b696
19 changed files with 77 additions and 77 deletions

View File

@@ -96,7 +96,7 @@ namespace NadekoBot.Modules.Utility
using (var uow = _db.GetDbContext())
{
quote = uow.Quotes.GetById(id);
if (quote.GuildId != Context.Guild.Id)
if (quote.GuildId != ctx.Guild.Id)
quote = null;
}

View File

@@ -177,7 +177,7 @@ namespace NadekoBot.Modules.Utility
);
}
await Context.Channel.EmbedAsync(embed).ConfigureAwait(false);
await ctx.Channel.EmbedAsync(embed).ConfigureAwait(false);
}
private string GetRepeaterInfoString(RunningRepeater runner)

View File

@@ -48,7 +48,7 @@ namespace NadekoBot.Modules.Utility
message = rep.Replace(message);
await channel.SendAsync(message, !((IGuildUser)Context.User).GuildPermissions.MentionEveryone);
await channel.SendAsync(message, !((IGuildUser)ctx.User).GuildPermissions.MentionEveryone);
}
[NadekoCommand, Aliases]
@@ -98,7 +98,7 @@ namespace NadekoBot.Modules.Utility
if (--page < 0)
return;
await Context.Channel.TriggerTypingAsync().ConfigureAwait(false);
await ctx.Channel.TriggerTypingAsync().ConfigureAwait(false);
await _tracker.EnsureUsersDownloadedAsync(ctx.Guild).ConfigureAwait(false);
var users = await ctx.Guild.GetUsersAsync();