Use AllowedMentions to disable mentions everywhere by default

This commit is contained in:
Ske
2020-06-20 17:33:10 +02:00
parent ff7b728762
commit 2c35649ef0
9 changed files with 32 additions and 16 deletions

View File

@@ -122,7 +122,7 @@ namespace PluralKit.Bot
// User-facing errors, print to the channel properly formatted
var msg = evt.Message;
if (msg.Channel.Guild == null || msg.Channel.BotHasAllPermissions(Permissions.SendMessages))
await msg.Channel.SendMessageAsync($"{Emojis.Error} {e.Message}");
await msg.Channel.SendMessageFixedAsync($"{Emojis.Error} {e.Message}");
}
return false;