Skip to content

Commit

Permalink
Fixed syncglobal f strings
Browse files Browse the repository at this point in the history
  • Loading branch information
geirawsm committed May 11, 2024
1 parent c52c573 commit dcbcc93
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sausage_bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ async def sync_global(interaction: discord.Interaction):
await config.bot.tree.sync()
_cmd = ''
for command in config.bot.tree.get_commands():
_cmd += (f"- {command.name} (Type: "
"{'Slash Command' if "
"isinstance(command, discord.app_commands.Command) "
"else 'Text Command'})"
)
slash_or_text = 'Slash Command' if isinstance(
command, discord.app_commands.Command
) else 'Text Command'
_cmd += (
f'- {command.name} (Type: {slash_or_text})'
)
if _cmd != '':
_cmd += '\n'
await interaction.response.send_message(
Expand Down

0 comments on commit dcbcc93

Please sign in to comment.