From e058d05224430a524e348d843ff96cdc8d9040ef Mon Sep 17 00:00:00 2001 From: spiral Date: Sun, 8 Aug 2021 15:38:33 -0400 Subject: [PATCH] fix: catch the correct exception in Paginate --- PluralKit.Bot/Utils/ContextUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Utils/ContextUtils.cs b/PluralKit.Bot/Utils/ContextUtils.cs index 88342b6b..9f4d1cef 100644 --- a/PluralKit.Bot/Utils/ContextUtils.cs +++ b/PluralKit.Bot/Utils/ContextUtils.cs @@ -130,7 +130,7 @@ namespace PluralKit.Bot { // 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) { } + catch (ForbiddenException) { } } public static async Task Choose(this Context ctx, string description, IList items, Func display = null)