mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix error on DMing with no permission
This commit is contained in:
parent
4ee0c13d62
commit
3196f60093
3 changed files with 7 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue