Skip to content

Commit

Permalink
spamming to ephemeral
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisHromada committed May 19, 2023
1 parent 5f8051f commit cbebffc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cogs/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit cbebffc

Please sign in to comment.