mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
voice: make Guild.voice more robust
This commit is contained in:
parent
bcb0cd838b
commit
0d9bc8664d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue