From 0d9bc8664dc2dc3b3bf7d35ba7b9050f2797a211 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Mon, 29 Apr 2019 19:31:31 +0100 Subject: [PATCH] voice: make Guild.voice more robust --- src/structures/Guild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 6f86dc14a..df18ea347 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -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); } /**