mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
document GuildMember#voice
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user