lots of important stuff (#1883)

* lots of important stuff

* Update Constants.js
This commit is contained in:
Gus Caplan
2017-09-04 10:49:44 -05:00
committed by Crawl
parent 3a503ef56e
commit 18e3801bb7
15 changed files with 212 additions and 253 deletions

View File

@@ -12,7 +12,6 @@ const MessageStore = require('../stores/MessageStore');
class TextChannel extends GuildChannel {
constructor(guild, data) {
super(guild, data);
this.type = 'text';
this.messages = new MessageStore(this);
this._typing = new Map();
}
@@ -34,6 +33,8 @@ class TextChannel extends GuildChannel {
this.nsfw = Boolean(data.nsfw);
this.lastMessageID = data.last_message_id;
if (data.messages) for (const message of data.messages) this.messages.create(message);
}
/**