From 7fd4cb5abe20bbf78f85eb427bc69f69a75532b8 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 6 Aug 2017 18:17:31 -0500 Subject: [PATCH] Correct how to get the bot attribute --- cogs/music.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/music.py b/cogs/music.py index a2cf029..66e2ee4 100644 --- a/cogs/music.py +++ b/cogs/music.py @@ -682,7 +682,7 @@ class Music: pass else: # Refresh the guild info, as want whatever the new VoiceClient is - guild = bot.get_guild(ctx.message.guild.id) + guild = self.bot.get_guild(ctx.message.guild.id) if guild.voice_client: await guild.voice_client.disconnect(force=True)