Skip to content

Commit

Permalink
spamming to ephemeral fr fr
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisHromada committed May 19, 2023
1 parent 2f66167 commit cff807e
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 @@ -134,7 +134,8 @@ async def on_slash_command_error(self, inter: disnake.ApplicationCommandInteract
if isinstance(error, commands.CommandOnCooldown):
await inter.send(
utils.fill_message("spamming", user=inter.author.id, time=error.retry_after)
)
),
ephemeral = True
return

if isinstance(error, commands.NoPrivateMessage):
Expand Down

0 comments on commit cff807e

Please sign in to comment.