Check channel permission instead of guild permission
This commit is contained in:
parent
7c1159085c
commit
392ae5e3eb
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Purge(commands.Cog):
|
|||
@commands.guild_only()
|
||||
async def purge(self, ctx: commands.Context):
|
||||
if ctx.invoked_subcommand is None:
|
||||
if ctx.message.author.guild_permissions.manage_messages:
|
||||
if ctx.message.channel.permissions_for(ctx.author).manage_messages:
|
||||
self.purges[ctx.message.author.id] = ctx.message
|
||||
await ctx.message.add_reaction("\U0001f44d")
|
||||
|
||||
|
|
Reference in a new issue