diff options
Diffstat (limited to 'util/src/entities/Message.ts')
-rw-r--r-- | util/src/entities/Message.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/src/entities/Message.ts b/util/src/entities/Message.ts index 78888e17..6ea5c4aa 100644 --- a/util/src/entities/Message.ts +++ b/util/src/entities/Message.ts @@ -117,7 +117,7 @@ export class Message extends BaseClass { content?: string; setContent(val: string) { - if (BannedWords.find(val)) throw new HTTPError("Message was blocked by automatic moderation", 200000); + if (val && BannedWords.find(val)) throw new HTTPError("Message was blocked by automatic moderation", 200000); this.content = val; } |