mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
voice: Guild.voiceConnection => Guild.voice.connection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user