From 34fe88da2935d5d5b2a6fd1f9bec3012740ce633 Mon Sep 17 00:00:00 2001 From: PredaaA <46051820+PredaaA@users.noreply.github.com> Date: Wed, 21 Oct 2020 14:23:36 +0200 Subject: [PATCH] [Menus] Handle ctx.me that can be None when clearing reactions (#3902) --- redbot/core/utils/menus.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redbot/core/utils/menus.py b/redbot/core/utils/menus.py index f697926c3..a0c612828 100644 --- a/redbot/core/utils/menus.py +++ b/redbot/core/utils/menus.py @@ -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()