Fix error on DMing with no permission

This commit is contained in:
Ske
2021-03-18 11:38:28 +01:00
parent 4ee0c13d62
commit 3196f60093
3 changed files with 7 additions and 6 deletions

View File

@@ -170,7 +170,7 @@ namespace PluralKit.Bot
Embed = await _embeds.CreateMessageInfoEmbed(msg)
});
}
catch (UnauthorizedException) { } // No permissions to DM, can't check for this :(
catch (ForbiddenException) { } // No permissions to DM, can't check for this :(
await TryRemoveOriginalReaction(evt);
}
@@ -210,7 +210,7 @@ namespace PluralKit.Bot
});
await _rest.CreateMessage(dm.Id, new MessageRequest {Content = $"<@{msg.Message.Sender}>".AsCode()});
}
catch (UnauthorizedException) { }
catch (ForbiddenException) { }
}
await TryRemoveOriginalReaction(evt);