voice: Guild.voiceConnection => Guild.voice.connection

This commit is contained in:
Amish Shah
2019-04-29 19:24:27 +01:00
parent ce1e3d2084
commit dd44647537
3 changed files with 21 additions and 1 deletions

View File

@@ -398,6 +398,15 @@ class Guild extends Base {
null);
}
/**
* The voice state for the client user of this guild, if any
* @type {?VoiceState}
* @readonly
*/
get voice() {
return this.me ? this.me.voice : null;
}
/**
* Returns the GuildMember form of a User object, if the user is present in the guild.
* @param {UserResolvable} user The user that you want to obtain the GuildMember of