mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Add perms check
This commit is contained in:
parent
eb2b24cde0
commit
8c08c193d7
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue