From 0215f24fe2bcfb6bc7ccd2a15370ef2dd52c4537 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 2 Feb 2023 19:10:52 +0000 Subject: [PATCH] format: linting --- cogs/config/autojoin.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cogs/config/autojoin.py b/cogs/config/autojoin.py index d72e2c82..6405da6d 100644 --- a/cogs/config/autojoin.py +++ b/cogs/config/autojoin.py @@ -15,8 +15,10 @@ async def autojoin_logic( or role.is_bot_managed() or role.managed or not role.is_assignable() - or role >= interaction.user.top_role # type: ignore - and interaction.guild.owner_id != interaction.user.id if interaction.guild else True + or role >= interaction.user.top_role # type: ignore + and interaction.guild.owner_id != interaction.user.id + if interaction.guild + else True ): return await interaction.response.send_message( i18n.t("config.invalid_role", locale=language), ephemeral=True @@ -134,7 +136,7 @@ async def list(self, interaction: discord.Interaction): locale=language, ), description=i18n.t("config.autojoinroles_desc", locale=language), - color=await get_color(self.bot, interaction.guild.id), # type: ignore + color=await get_color(self.bot, interaction.guild.id), # type: ignore ) embed.set_thumbnail(url="attachment://thumbnail.png") if not data: @@ -162,7 +164,7 @@ async def list(self, interaction: discord.Interaction): inline=False, ) await interaction.followup.send(embed=embed, file=file) - delete_thumbnail(interaction.guild_id, "role") # type: ignore + delete_thumbnail(interaction.guild_id, "role") # type: ignore @commands.Cog.listener() async def on_member_join(self, member: discord.Member):