[Menus] Handle ctx.me that can be None when clearing reactions (#3902)

This commit is contained in:
PredaaA
2020-10-21 14:23:36 +02:00
committed by GitHub
parent 454ff90d09
commit 34fe88da29

View File

@@ -94,6 +94,8 @@ async def menu(
timeout=timeout,
)
except asyncio.TimeoutError:
if not ctx.me:
return
try:
if message.channel.permissions_for(ctx.me).manage_messages:
await message.clear_reactions()