diff --git a/src/structures/DMChannel.js b/src/structures/DMChannel.js index 378ee1a83..b55f84c13 100644 --- a/src/structures/DMChannel.js +++ b/src/structures/DMChannel.js @@ -12,6 +12,7 @@ class DMChannel extends Channel { constructor(client, data) { super(client, data); this.messages = new Collection(); + this._typing = new Map(); } setup(data) { @@ -25,7 +26,6 @@ class DMChannel extends Channel { this.type = 'dm'; this.lastMessageID = data.last_message_id; - this._typing = new Map(); } /** diff --git a/src/structures/TextChannel.js b/src/structures/TextChannel.js index 62cea0f12..4c934530d 100644 --- a/src/structures/TextChannel.js +++ b/src/structures/TextChannel.js @@ -11,6 +11,7 @@ class TextChannel extends GuildChannel { constructor(guild, data) { super(guild, data); this.messages = new Collection(); + this._typing = new Map(); } setup(data) { @@ -24,7 +25,6 @@ class TextChannel extends GuildChannel { this.type = 'text'; this.lastMessageID = data.last_message_id; - this._typing = new Map(); } /**