document GuildMember#voice

This commit is contained in:
Amish Shah 2018-08-14 11:50:11 +01:00
parent 7864653df7
commit e666574f36
No known key found for this signature in database
GPG key ID: 904349C1207D7967

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 });
}