Correct how to get the bot attribute
This commit is contained in:
parent
f221a0eee5
commit
7fd4cb5abe
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue