Move channel type to constructors

This commit is contained in:
Schuyler Cebulskie
2016-09-10 12:39:28 -04:00
parent 3f52ba27c9
commit 91a7d4f80e
4 changed files with 5 additions and 5 deletions

View File

@@ -10,6 +10,7 @@ const Collection = require('../util/Collection');
class TextChannel extends GuildChannel {
constructor(guild, data) {
super(guild, data);
this.type = 'text';
this.messages = new Collection();
this._typing = new Map();
}
@@ -23,7 +24,6 @@ class TextChannel extends GuildChannel {
*/
this.topic = data.topic;
this.type = 'text';
this.lastMessageID = data.last_message_id;
}