Switched to OpusVoice
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user