mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-11 04:17:58 +00:00
Change variable name for binding error handler to be more generic
This commit is contained in:
parent
0546343bcb
commit
4914e74029
@ -613,9 +613,9 @@ class Command(Generic[GroupT, P, T]):
|
|||||||
if parent.parent is not None:
|
if parent.parent is not None:
|
||||||
await parent.parent.on_error(interaction, error)
|
await parent.parent.on_error(interaction, error)
|
||||||
|
|
||||||
cog_error = getattr(self.binding, '__app_commands_error_handler__', None)
|
binding_error_handler = getattr(self.binding, '__app_commands_error_handler__', None)
|
||||||
if cog_error is not None:
|
if binding_error_handler is not None:
|
||||||
await cog_error(interaction, error)
|
await binding_error_handler(interaction, error)
|
||||||
|
|
||||||
def _has_any_error_handlers(self) -> bool:
|
def _has_any_error_handlers(self) -> bool:
|
||||||
if self.on_error is not None:
|
if self.on_error is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user