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

@@ -33,6 +33,7 @@ const arraysEqual = require('../util/ArraysEqual');
class GroupDMChannel extends Channel {
constructor(client, data) {
super(client, data);
this.type = 'group';
this.messages = new Collection();
this._typing = new Map();
}
@@ -73,7 +74,6 @@ class GroupDMChannel extends Channel {
}
}
this.type = 'group';
this.lastMessageID = data.last_message_id;
}