voice: make Guild.voice more robust

This commit is contained in:
Amish Shah
2019-04-29 19:31:31 +01:00
parent bcb0cd838b
commit 0d9bc8664d

View File

@@ -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);
}
/**