diff --git a/PluralKit.Bot/Utils/ContextUtils.cs b/PluralKit.Bot/Utils/ContextUtils.cs index 4cfd4597..5060dabb 100644 --- a/PluralKit.Bot/Utils/ContextUtils.cs +++ b/PluralKit.Bot/Utils/ContextUtils.cs @@ -169,8 +169,14 @@ public static class ContextUtils if (currentPage < 0) currentPage += pageCount; // If we can, remove the user's reaction (so they can press again quickly) - if ((await ctx.BotPermissions).HasFlag(PermissionSet.ManageMessages)) - await ctx.Rest.DeleteUserReaction(msg.ChannelId, msg.Id, reaction.Emoji, reaction.UserId); + if ((await ctx.BotPermissions).HasFlag(PermissionSet.ManageMessages)) try + { + await ctx.Rest.DeleteUserReaction(msg.ChannelId, msg.Id, reaction.Emoji, reaction.UserId); + } + catch (TooManyRequestsException) + { + continue; + } // Edit the embed with the new page var embed = await MakeEmbedForPage(currentPage);