From e6bfc6c3744393f2fb60df8aac4883eb9a842d91 Mon Sep 17 00:00:00 2001 From: spiral Date: Mon, 26 Apr 2021 03:44:02 +0100 Subject: [PATCH] Fix error on paginate timeout when missing permissions --- PluralKit.Bot/Utils/ContextUtils.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PluralKit.Bot/Utils/ContextUtils.cs b/PluralKit.Bot/Utils/ContextUtils.cs index 71da564c..8121bb27 100644 --- a/PluralKit.Bot/Utils/ContextUtils.cs +++ b/PluralKit.Bot/Utils/ContextUtils.cs @@ -160,6 +160,10 @@ namespace PluralKit.Bot { } // If we get a "NotFound" error, the message has been deleted and thus not our problem catch (NotFoundException) { } + // If we get an "Unauthorized" error, we don't have permissions to remove our reaction + // which means we probably didn't add it in the first place, or permissions changed since then + // either way, nothing to do here + catch (UnauthorizedException) { } } public static async Task Choose(this Context ctx, string description, IList items, Func display = null)