Switched to OpusVoice

This commit is contained in:
Lukas Blacha
2023-02-07 22:24:06 +01:00
parent 22e74ff829
commit 3496e0e5a7

View File

@@ -200,9 +200,7 @@ else:
async def on_application_command_error(ctx, error): async def on_application_command_error(ctx, error):
print(f"[on_application_command_error]\n{ctx.author}\n{error}") print(f"[on_application_command_error]\n{ctx.author}\n{error}")
if isinstance(error, discord.ext.commands.CommandError): if isinstance(error, discord.ext.commands.CommandError):
cool_down_time = int(error.cooldown.get_retry_after()) embed = Embed(title=f"{warning}{error}",
td = timedelta(seconds=cool_down_time)
embed = Embed(title=f"{warning}Dieser Command befindet sich im Cool Down!\n Versuche es in `{td}` nochmal!",
color=15158332) color=15158332)
elif isinstance(error, discord.ext.commands.CommandOnCooldown): elif isinstance(error, discord.ext.commands.CommandOnCooldown):
cool_down_time = int(error.cooldown.get_retry_after()) cool_down_time = int(error.cooldown.get_retry_after())