1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-16 18:59:09 +00:00

Fix Tree.on_error still being called when a bound error handler is set

Closes 
This commit is contained in:
Rapptz 2022-09-24 01:22:03 -04:00
parent 6bec7e9d97
commit 6e5392c6e2

@ -830,6 +830,10 @@ class Command(Generic[GroupT, P, T]):
if not hasattr(parent.parent.on_error, '__discord_app_commands_base_function__'):
return True
# Check if we have a bound error handler
if hasattr(self.binding, '__discord_app_commands_error_handler__'):
return True
return False
async def _transform_arguments(self, interaction: Interaction, namespace: Namespace) -> Dict[str, Any]: