Skip to content

Commit

Permalink
forgot black
Browse files Browse the repository at this point in the history
  • Loading branch information
BabyBoySnow committed Dec 15, 2023
1 parent 117ec17 commit 6083544
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6083544

Please sign in to comment.