Fix various bugs and regressions

This commit is contained in:
Ske
2021-01-31 16:02:34 +01:00
parent 8785354a2b
commit 80c572f594
11 changed files with 60 additions and 57 deletions

View File

@@ -101,9 +101,9 @@ namespace PluralKit.Bot
{
Content = text,
Embed = embed,
AllowedMentions = mentions
// Default to an empty allowed mentions object instead of null (which means no mentions allowed)
AllowedMentions = mentions ?? new AllowedMentions()
});
// TODO: mentions should default to empty and not null?
if (embed != null)
{