mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
fix(Message): Ensure channel is defined for clean content (#10681)
fix(Message): ensure channel is defined for clean content Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -563,7 +563,7 @@ class Message extends Base {
|
|||||||
*/
|
*/
|
||||||
get cleanContent() {
|
get cleanContent() {
|
||||||
// eslint-disable-next-line eqeqeq
|
// eslint-disable-next-line eqeqeq
|
||||||
return this.content != null ? cleanContent(this.content, this.channel) : null;
|
return this.content != null && this.channel ? cleanContent(this.content, this.channel) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user