errory voice

This commit is contained in:
Amish Shah
2016-08-24 21:38:48 +01:00
parent 48444a5444
commit 8683f45816
20 changed files with 476 additions and 13 deletions

View File

@@ -192,6 +192,14 @@ class Guild {
return base;
}
_memberSpeakUpdate(user, speaking) {
const member = this.members.get(user);
if (member) {
member.speaking = speaking;
}
this.client.emit(Constants.Events.GUILD_MEMBER_SPEAKING, member, speaking);
}
/**
* Sets up the Guild
* @param {any} data
@@ -288,12 +296,6 @@ class Guild {
}
}
/**
* The embed channel of the Guild.
* @type {GuildChannel}
*/
this.embedChannel = this.channels.get(data.embed_channel_id);
if (data.roles) {
this.roles.clear();
for (const role of data.roles) {