We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7280d4e commit 46bf8f0Copy full SHA for 46bf8f0
packages/discord.js/src/structures/Message.js
@@ -590,7 +590,7 @@ class Message extends Base {
590
*/
591
get cleanContent() {
592
// eslint-disable-next-line eqeqeq
593
- return this.content != null ? cleanContent(this.content, this.channel) : null;
+ return this.content != null && this.channel ? cleanContent(this.content, this.channel) : null;
594
}
595
596
/**
0 commit comments