Fix handling lack of DM permissions when react-querying

This commit is contained in:
Ske 2020-05-12 21:31:59 +02:00
parent 8ea02dae81
commit b9a89a1037

View File

@ -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.CreateMemberEmbed(msg.System, msg.Member, args.Guild, LookupContext.ByNonOwner));
await member.SendMessageAsync(embed: await _embeds.CreateMessageInfoEmbed(args.Client, msg)); 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 // Ignore exception if it means we don't have DM permission to this user
// not much else we can do here :/ // not much else we can do here :/
} }