mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03: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;
|
return (channel && channel.messages.get(this.lastMessageID)) || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The voice state of this member
|
||||||
|
* @type {VoiceState}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
get voice() {
|
get voice() {
|
||||||
return this.guild.voiceStates.get(this.id) || new VoiceState(this.guild, { user_id: this.id });
|
return this.guild.voiceStates.get(this.id) || new VoiceState(this.guild, { user_id: this.id });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user