mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
feat(VoiceConnection): add .voice
This commit is contained in:
@@ -166,6 +166,14 @@ class VoiceConnection extends EventEmitter {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The voice state of this connection
|
||||||
|
* @type {VoiceState}
|
||||||
|
*/
|
||||||
|
get voice() {
|
||||||
|
return this.channel.guild.voiceStates.get(this.client.user.id);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends a request to the main gateway to join a voice channel.
|
* Sends a request to the main gateway to join a voice channel.
|
||||||
* @param {Object} [options] The options to provide
|
* @param {Object} [options] The options to provide
|
||||||
|
|||||||
Reference in New Issue
Block a user