From e666574f363527507bf5b7c52e53f05ead472f11 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Tue, 14 Aug 2018 11:50:11 +0100 Subject: [PATCH] document GuildMember#voice --- src/structures/GuildMember.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/structures/GuildMember.js b/src/structures/GuildMember.js index 9b6beee74..3f0a40cf5 100644 --- a/src/structures/GuildMember.js +++ b/src/structures/GuildMember.js @@ -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 }); }