accept custom sockfile
This commit is contained in:
parent
9834820efe
commit
62f98be69d
3 changed files with 9 additions and 5 deletions
|
@ -67,7 +67,10 @@ class Rsudo(Cog):
|
|||
return discord.utils.get(_user.roles, id=self.bot.config.admin_role) is not None
|
||||
|
||||
reaction, admin = await self.bot.wait_for('reaction_add', check=check)
|
||||
await msg.clear_reactions()
|
||||
try:
|
||||
await msg.clear_reactions()
|
||||
except:
|
||||
log.error('can not remove reactions')
|
||||
|
||||
should_execute = emoji.get(reaction.emoji)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue