mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 22:07:55 +00:00
Rename BotHasPermission to a more descriptive name
This commit is contained in:
parent
ca57d10f7c
commit
720755844f
8 changed files with 13 additions and 14 deletions
|
|
@ -98,7 +98,7 @@ namespace PluralKit.Bot
|
|||
|
||||
// Once we've sent it to Sentry, report it to the user (if we have permission to)
|
||||
var reportChannel = handler.ErrorChannelFor(evt);
|
||||
if (reportChannel != null && reportChannel.BotHasPermission(Permissions.SendMessages))
|
||||
if (reportChannel != null && reportChannel.BotHasAllPermissions(Permissions.SendMessages))
|
||||
{
|
||||
var eid = sentryEvent.EventId;
|
||||
await reportChannel.SendMessageAsync(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue