diff --git a/musicbot/bot.py b/musicbot/bot.py index a3b87c794..85e84a7e4 100644 --- a/musicbot/bot.py +++ b/musicbot/bot.py @@ -344,7 +344,9 @@ def _autopause(player): ) continue - if channel and isinstance(channel, (discord.VoiceChannel, discord.StageChannel)): + if channel and isinstance( + channel, (discord.VoiceChannel, discord.StageChannel) + ): log.info("Attempting to join {0.guild.name}/{0.name}".format(channel)) chperms = channel.permissions_for(guild.me) @@ -505,9 +507,7 @@ async def get_voice_client(self, channel: discord.abc.GuildChannel): if isinstance(channel, discord.Object): channel = self.get_channel(channel.id) - if not isinstance( - channel, (discord.VoiceChannel, discord.StageChannel) - ): + if not isinstance(channel, (discord.VoiceChannel, discord.StageChannel)): raise AttributeError("Channel passed must be a voice channel") if channel.guild.voice_client: