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