mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +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
|
|
@ -40,7 +40,7 @@ namespace PluralKit.Bot
|
|||
if (ctx.Channel.Type != Channel.ChannelType.Dm)
|
||||
await ctx.Reply($"{Emojis.Success} Check your DMs!");
|
||||
}
|
||||
catch (UnauthorizedException)
|
||||
catch (ForbiddenException)
|
||||
{
|
||||
// Can't check for permission errors beforehand, so have to handle here :/
|
||||
if (ctx.Channel.Type != Channel.ChannelType.Dm)
|
||||
|
|
@ -84,7 +84,7 @@ namespace PluralKit.Bot
|
|||
if (ctx.Channel.Type != Channel.ChannelType.Dm)
|
||||
await ctx.Reply($"{Emojis.Success} Check your DMs!");
|
||||
}
|
||||
catch (UnauthorizedException)
|
||||
catch (ForbiddenException)
|
||||
{
|
||||
// Can't check for permission errors beforehand, so have to handle here :/
|
||||
if (ctx.Channel.Type != Channel.ChannelType.Dm)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue