mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Menus] Handle ctx.me that can be None when clearing reactions (#3902)
This commit is contained in:
parent
454ff90d09
commit
34fe88da29
@ -94,6 +94,8 @@ async def menu(
|
|||||||
timeout=timeout,
|
timeout=timeout,
|
||||||
)
|
)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
|
if not ctx.me:
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
if message.channel.permissions_for(ctx.me).manage_messages:
|
if message.channel.permissions_for(ctx.me).manage_messages:
|
||||||
await message.clear_reactions()
|
await message.clear_reactions()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user