mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
cooldown error message formatting
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -105,7 +105,7 @@ class Errors(commands.Cog):
|
||||
return await ctx.reply(text)
|
||||
|
||||
elif isinstance(error, commands.CommandOnCooldown):
|
||||
text = 'Kommandoen har nettopp blitt brukt' + \
|
||||
text = 'Kommandoen har nettopp blitt brukt\n' + \
|
||||
f'Prøv igjen om `{error.retry_after:.1f}` sekunder.'
|
||||
return await ctx.reply(text)
|
||||
|
||||
@@ -161,7 +161,7 @@ class Errors(commands.Cog):
|
||||
# return await interaction.response.send_message(embed=embed)
|
||||
|
||||
elif isinstance(error, app_commands.CommandOnCooldown):
|
||||
embed = embed_templates.error_warning(interaction, text='Kommandoen har nettopp blitt brukt' +
|
||||
embed = embed_templates.error_warning(interaction, text='Kommandoen har nettopp blitt brukt\n' +
|
||||
f'Prøv igjen om `{error.retry_after:.1f}` sekunder.')
|
||||
return await interaction.response.send_message(embed=embed)
|
||||
|
||||
|
||||
Reference in new issue
Block a user