|
@@ -62,7 +62,7 @@ namespace Discord.Commands |
|
|
if (guildChannel != null) |
|
|
if (guildChannel != null) |
|
|
perms = guildUser.GetPermissions(guildChannel); |
|
|
perms = guildUser.GetPermissions(guildChannel); |
|
|
else |
|
|
else |
|
|
perms = ChannelPermissions.All(guildChannel); |
|
|
|
|
|
|
|
|
perms = ChannelPermissions.All(context.Channel); |
|
|
|
|
|
|
|
|
if (!perms.Has(ChannelPermission.Value)) |
|
|
if (!perms.Has(ChannelPermission.Value)) |
|
|
return Task.FromResult(PreconditionResult.FromError($"User requires channel permission {ChannelPermission.Value}")); |
|
|
return Task.FromResult(PreconditionResult.FromError($"User requires channel permission {ChannelPermission.Value}")); |
|
|