mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
document GuildMember#voice
This commit is contained in:
parent
7864653df7
commit
e666574f36
1 changed files with 5 additions and 0 deletions
|
|
@ -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 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue