Fix null exception
This commit is contained in:
parent
67b89f6bc2
commit
20995124ca
1 changed files with 1 additions and 0 deletions
|
@ -157,6 +157,7 @@ namespace Noikoio.RegexBot.Module.AutoMod
|
|||
string msgcontent;
|
||||
if (MatchEmbed) msgcontent = SerializeEmbed(m.Embeds);
|
||||
else msgcontent = m.Content;
|
||||
if (msgcontent == null) return false;
|
||||
|
||||
// Min/max length check
|
||||
if (_msgMinLength != -1 && msgcontent.Length <= _msgMinLength) return false;
|
||||
|
|
Loading…
Reference in a new issue