mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
feat(VoiceConnection): add .voice
This commit is contained in:
parent
2666a9d6db
commit
ce1e3d2084
1 changed files with 8 additions and 0 deletions
|
|
@ -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.
|
||||
* @param {Object} [options] The options to provide
|
||||
|
|
|
|||
Loading…
Reference in a new issue