document GuildMember#voice

This commit is contained in:
Amish Shah
2018-08-14 11:50:11 +01:00
parent 7864653df7
commit e666574f36

View File

@@ -96,6 +96,11 @@ class GuildMember extends Base {
return (channel && channel.messages.get(this.lastMessageID)) || null;
}
/**
* The voice state of this member
* @type {VoiceState}
* @readonly
*/
get voice() {
return this.guild.voiceStates.get(this.id) || new VoiceState(this.guild, { user_id: this.id });
}