mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 10:18:27 -04:00
Replaced access to .Context with .ctx
This commit is contained in:
@@ -43,8 +43,8 @@ namespace NadekoBot.Modules.Administration
|
||||
return;
|
||||
}
|
||||
|
||||
if (Context.User.Id != Context.Guild.OwnerId &&
|
||||
role.Position >= ((SocketGuildUser) Context.User).Roles.Max(x => x.Position))
|
||||
if (ctx.User.Id != ctx.Guild.OwnerId &&
|
||||
role.Position >= ((SocketGuildUser) ctx.User).Roles.Max(x => x.Position))
|
||||
{
|
||||
await ReplyErrorLocalizedAsync("insuf_perms_u").ConfigureAwait(false);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user