Add perms check

This commit is contained in:
Nexus 2023-03-31 11:59:17 +01:00
parent eb2b24cde0
commit 8c08c193d7
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -70,7 +70,7 @@ class Events(commands.Cog):
if payload.emoji.name == "\N{wastebasket}\U0000fe0f": if payload.emoji.name == "\N{wastebasket}\U0000fe0f":
if message.author.id == self.bot.user.id: if message.author.id == self.bot.user.id:
await message.delete(delay=0.25) await message.delete(delay=0.25)
else: elif message.channel.permissions_for(message.guild.me).manage_messages:
reactions = 0 reactions = 0
mod_reactions = 0 mod_reactions = 0
for reaction in message.reactions: for reaction in message.reactions: