Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pieckenst committed Aug 2, 2024
2 parents 32bbefb + e2049e0 commit f9dab8c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cogs/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ async def send_command_help(self, command):
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]
Expand Down Expand Up @@ -127,9 +125,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)


Expand Down

0 comments on commit f9dab8c

Please sign in to comment.