Remove lastMessageID from voiceChannel

This commit is contained in:
Amish Shah
2016-08-22 19:29:02 +01:00
parent 6ad970e311
commit 59cc02de89
3 changed files with 10 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -50,11 +50,6 @@ class GuildChannel extends Channel {
* @type {String}
*/
this.name = data.name;
/**
* The ID of the last message in the channel, if one was sent.
* @type {?String}
*/
this.lastMessageID = data.last_message_id;
this.ow = data.permission_overwrites;
/**
* A map of permission overwrites in this channel for roles and users.

View File

@@ -13,6 +13,15 @@ class TextChannel extends GuildChannel {
this.messages = new Map();
}
setup(data) {
super.setup(data);
/**
* The ID of the last message in the channel, if one was sent.
* @type {?String}
*/
this.lastMessageID = data.last_message_id;
}
sendMessage() {
return;
}