mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
fix: don't patch set data with undefined (#6694)
This commit is contained in:
@@ -71,9 +71,9 @@ class Message extends Base {
|
||||
* @type {?boolean}
|
||||
*/
|
||||
this.system = SystemMessageTypes.includes(this.type);
|
||||
} else if (typeof this.type !== 'string') {
|
||||
this.system = null;
|
||||
this.type = null;
|
||||
} else {
|
||||
this.system ??= null;
|
||||
this.type ??= null;
|
||||
}
|
||||
|
||||
if ('content' in data) {
|
||||
|
||||
Reference in New Issue
Block a user