diff --git a/src/structures/Channel.js b/src/structures/Channel.js index 311c7be40..e29e75d69 100644 --- a/src/structures/Channel.js +++ b/src/structures/Channel.js @@ -20,7 +20,6 @@ class Channel { */ this.type = null; - this._typing = new Map(); if (data) this.setup(data); } diff --git a/src/structures/DMChannel.js b/src/structures/DMChannel.js index 6f10fcbbd..639f208f5 100644 --- a/src/structures/DMChannel.js +++ b/src/structures/DMChannel.js @@ -25,6 +25,7 @@ class DMChannel extends Channel { this.type = 'dm'; this.lastMessageID = data.last_message_id; + this._typing = new Map(); } /** diff --git a/src/structures/GroupDMChannel.js b/src/structures/GroupDMChannel.js index aad39d547..a11e15a23 100644 --- a/src/structures/GroupDMChannel.js +++ b/src/structures/GroupDMChannel.js @@ -72,9 +72,9 @@ class GroupDMChannel extends Channel { } } - this.id = data.id; this.type = 'group'; this.lastMessageID = data.last_message_id; + this._typing = new Map(); } equals(other) { diff --git a/src/structures/TextChannel.js b/src/structures/TextChannel.js index 4c71fa167..dec8c18db 100644 --- a/src/structures/TextChannel.js +++ b/src/structures/TextChannel.js @@ -22,13 +22,9 @@ class TextChannel extends GuildChannel { */ this.topic = data.topic; - /** - * The ID of the last message in the channel, if one was sent. - * @type {?string} - */ - this.lastMessageID = data.last_message_id; - this.type = 'text'; + this.lastMessageID = data.last_message_id; + this._typing = new Map(); } sendMessage() {