From 4d2c843442128fd7130d99a69ddfb759a97b8283 Mon Sep 17 00:00:00 2001 From: Ske Date: Mon, 12 Aug 2019 18:07:29 +0200 Subject: [PATCH] Handle busy indicator without permission properly --- PluralKit.Bot/ContextUtils.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PluralKit.Bot/ContextUtils.cs b/PluralKit.Bot/ContextUtils.cs index c6afd928..9e5d74b3 100644 --- a/PluralKit.Bot/ContextUtils.cs +++ b/PluralKit.Bot/ContextUtils.cs @@ -205,6 +205,9 @@ namespace PluralKit.Bot { { var task = f(); + // If we don't have permission to add reactions, don't bother, and just await the task normally. + if (!await ctx.HasPermission(ChannelPermission.AddReactions)) return await task; + try { await Task.WhenAll(ctx.Message.AddReactionAsync(new Emoji(emoji)), task);