mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-06 13:57:54 +00:00
fix: re-enable error messages for explicit commands
This commit is contained in:
parent
b998636cbe
commit
f897ce5a45
2 changed files with 19 additions and 14 deletions
|
|
@ -253,16 +253,12 @@ 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)
|
||||
{
|
||||
var botPerms = PermissionsIn(reportChannel.Value);
|
||||
if (botPerms.HasFlag(PermissionSet.SendMessages | PermissionSet.EmbedLinks))
|
||||
{
|
||||
// i'm just going to disable this for now we need to find something nicer
|
||||
// await _errorMessageService.SendErrorMessage(reportChannel.Value,
|
||||
// sentryEvent.EventId.ToString());
|
||||
}
|
||||
}
|
||||
if (reportChannel == null)
|
||||
return;
|
||||
|
||||
var botPerms = PermissionsIn(reportChannel.Value);
|
||||
if (botPerms.HasFlag(PermissionSet.SendMessages | PermissionSet.EmbedLinks))
|
||||
await _errorMessageService.SendErrorMessage(reportChannel.Value, sentryEvent.EventId.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue