From e2049e06bcf90683b45f0440bb1034799a8cc7af Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 2 Aug 2024 17:37:22 +0000 Subject: [PATCH] [ci] Autoformat with black --- cogs/help.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/cogs/help.py b/cogs/help.py index 909bd738..1ff899f4 100644 --- a/cogs/help.py +++ b/cogs/help.py @@ -7,9 +7,7 @@ class Dropdown(discord.ui.Select): def __init__(self, options, bot): self.bot = bot - super().__init__( - placeholder="Select a category", min_values=1, max_values=1, options=options - ) + super().__init__(placeholder="Select a category", min_values=1, max_values=1, options=options) async def callback(self, interaction: discord.Interaction): label = self.values[0] @@ -77,9 +75,7 @@ async def send_command_help(self, ctx: commands.Context, command_name: str): signature = f"{ctx.prefix}{command.name}" if command.signature: signature += f" {command.signature}" - embed = HelpEmbed( - title=signature, description=command.help or "No help found..." - ) + embed = HelpEmbed(title=signature, description=command.help or "No help found...") if cog := command.cog: embed.add_field(name="Category", value=cog.qualified_name) @@ -114,9 +110,7 @@ async def get_help(self, interaction, CogToPassAlong): ) emb.set_author(name="Help System") for command in cog.get_commands(): - emb.add_field( - name=f"『`{interaction.client.command_prefix}{command.name}`』", value=command.help, inline=False - ) + emb.add_field(name=f"『`{interaction.client.command_prefix}{command.name}`』", value=command.help, inline=False) await interaction.response.edit_message(embed=emb)