Skip to content

Commit

Permalink
fix: f-string and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 committed Nov 23, 2023
1 parent 4d7a0db commit e23ba04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def is_admin(interaction: discord.Interaction[ChouetteBot]):

# Command to publish a message from admins by the bot
@app_commands.check(is_admin)
@app_commands.command(name="whisper", description="Wisper an admin message")
@app_commands.command(name="whisper", description="Whisper an admin message")
async def whisper(interaction: discord.Interaction[ChouetteBot], message: str):
await interaction.channel.send(f"{interaction.client.user.name} wants so say this message: {message}")
await interaction.response.send_message("Commande réussie", ephemeral=True, delete_after=2)
2 changes: 1 addition & 1 deletion commands_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def on_command_error(interaction: discord.Interaction[ChouetteBot],
if isinstance(error, discord.app_commands.CheckFailure):
interaction.client.bot_logger.error(f"{interaction.user} tried to do {interaction.command.name} "
f"in #{interaction.channel}\n{SPACES}{error}")
await interaction.response.send_message(f"You're not allowed to use this command!",
await interaction.response.send_message("You're not allowed to use this command!",
ephemeral=True)
return
await interaction.response.send_message(f"{error}\nThis error is not caught, please signal it!",
Expand Down

0 comments on commit e23ba04

Please sign in to comment.