From b9a89a1037015b355678837fa64021c14829c6c9 Mon Sep 17 00:00:00 2001 From: Ske Date: Tue, 12 May 2020 21:31:59 +0200 Subject: [PATCH] Fix handling lack of DM permissions when react-querying --- PluralKit.Bot/Services/ProxyService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PluralKit.Bot/Services/ProxyService.cs b/PluralKit.Bot/Services/ProxyService.cs index cf28b1d7..aa0e1274 100644 --- a/PluralKit.Bot/Services/ProxyService.cs +++ b/PluralKit.Bot/Services/ProxyService.cs @@ -310,9 +310,8 @@ namespace PluralKit.Bot await member.SendMessageAsync(embed: await _embeds.CreateMemberEmbed(msg.System, msg.Member, args.Guild, LookupContext.ByNonOwner)); await member.SendMessageAsync(embed: await _embeds.CreateMessageInfoEmbed(args.Client, msg)); } - catch (BadRequestException) + catch (UnauthorizedException) { - // TODO: is this the correct exception // Ignore exception if it means we don't have DM permission to this user // not much else we can do here :/ }