mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Ignore spammy error that i can't do anything about
This commit is contained in:
parent
0f973efe29
commit
9341554040
1 changed files with 3 additions and 0 deletions
|
|
@ -150,6 +150,9 @@ class Events(commands.Cog):
|
||||||
|
|
||||||
if isinstance(err, commands.CheckFailure):
|
if isinstance(err, commands.CheckFailure):
|
||||||
return await ctx.respond("Je hebt geen toegang tot dit commando.", ephemeral=True)
|
return await ctx.respond("Je hebt geen toegang tot dit commando.", ephemeral=True)
|
||||||
|
elif isinstance(err, discord.NotFound):
|
||||||
|
print("Don't care")
|
||||||
|
return
|
||||||
|
|
||||||
usage = stringFormatters.format_slash_command_usage(ctx.interaction)
|
usage = stringFormatters.format_slash_command_usage(ctx.interaction)
|
||||||
await self.sendErrorEmbed(err, "Slash Command", usage)
|
await self.sendErrorEmbed(err, "Slash Command", usage)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue