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

@@ -11,6 +11,7 @@ const Collection = require('../util/Collection');
class DMChannel extends Channel {
constructor(client, data) {
super(client, data);
this.type = 'dm';
this.messages = new Collection();
this._typing = new Map();
}
@@ -24,7 +25,6 @@ class DMChannel extends Channel {
*/
this.recipient = this.client.dataManager.newUser(data.recipients[0]);
this.type = 'dm';
this.lastMessageID = data.last_message_id;
}