From cbebffc8fe0eab7137d4749cbe80769d1eb560d5 Mon Sep 17 00:00:00 2001 From: Denis Hromada Date: Fri, 19 May 2023 21:05:51 +0200 Subject: [PATCH] spamming to ephemeral --- cogs/error.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/error.py b/cogs/error.py index 7839f25b..e5d6cc50 100644 --- a/cogs/error.py +++ b/cogs/error.py @@ -186,7 +186,8 @@ async def on_user_command_error(self, inter: disnake.ApplicationCommandInteracti return if isinstance(error, commands.CommandOnCooldown): await inter.send( - utils.fill_message("spamming", user=inter.author.id, time=error.retry_after) + utils.fill_message("spamming", user=inter.author.id, time=error.retry_after), + ephemeral=True ) return if isinstance(error, commands.CheckFailure):