Skip to content

Commit

Permalink
style: black format
Browse files Browse the repository at this point in the history
  • Loading branch information
B1ue-Dev committed May 9, 2023
1 parent 564d106 commit 0be9bcc
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions exts/core/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,25 @@ async def help(self, ctx: interactions.SlashContext) -> None:
)

embed.add_field(
name=f"/{command.name}" + (f" {command.group_name}" if str(command.group_name) != "None" else "") + (f" {command.sub_cmd_name}" if str(command.sub_cmd_name) != "None" else ""),
value=f"{command.sub_cmd_description}" if str(command.sub_cmd_name) != "None" else f"{command.description}"
name=f"/{command.name}"
+ (
f" {command.group_name}"
if str(command.group_name) != "None"
else ""
)
+ (
f" {command.sub_cmd_name}"
if str(command.sub_cmd_name) != "None"
else ""
),
value=f"{command.sub_cmd_description}"
if str(command.sub_cmd_name) != "None"
else f"{command.description}",
)
i += 1

paginator = Paginator.create_from_embeds(self.client, *help_list, timeout=30)
paginator = Paginator.create_from_embeds(
self.client, *help_list, timeout=30
)
print(help_list)
await paginator.send(ctx)

0 comments on commit 0be9bcc

Please sign in to comment.