-
it doesn't matter if i have cog_app_command_error as a error handler or not. my console showers with bloods class Shop(commands.GroupCog, name="shop"):
def __init__(self, bot:commands.Bot) -> None:
self.bot = bot
@app_commands.command(name="testcheck")
@app_commands.checks.has_role("ShopKeeper")
async def testcheck(self, interaction: discord.Interaction):
await interaction.response.send_message("You have the permission to use this command")
# handle errors disptached in this cog
async def cog_app_command_error(self, interaction, error):
if isinstance(error, app_commands.errors.MissingRole):
return print("i handled it sire")
else:
return print("i cannot handle it") console no matter what:
expected: |
Beta Was this translation helpful? Give feedback.
Answered by
Rapptz
Dec 3, 2022
Replies: 1 comment
-
Are you on the latest release? There was a bug that was fixed in 2.0.1 and 2.1. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aurkaxi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you on the latest release? There was a bug that was fixed in 2.0.1 and 2.1.