Fix detection of overridden binding error handler

Closes #8963
This commit is contained in:
Rapptz 2022-09-27 23:50:06 -04:00
parent 7b595fb052
commit 217662ca44

View File

@ -831,7 +831,7 @@ class Command(Generic[GroupT, P, T]):
return True
# Check if we have a bound error handler
if hasattr(self.binding, '__discord_app_commands_error_handler__'):
if getattr(self.binding, '__discord_app_commands_error_handler__', None) is not None:
return True
return False