mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
voice: make Guild.voice more robust
This commit is contained in:
@@ -394,7 +394,7 @@ class Guild extends Base {
|
|||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get voice() {
|
get voice() {
|
||||||
return this.me ? this.me.voice : null;
|
return this.voiceStates.get(this.client.user.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user