mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-24 04:58:12 +00:00
🚑 hotfix CommandHandler call
This commit is contained in:
parent
19b102486d
commit
3aa68d5b50
@ -21,6 +21,9 @@ class CommandHandler:
|
||||
def func(self) -> CommandHandlerFunc:
|
||||
return self._pgp_func__
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
return self.func()(*args, **kwargs)
|
||||
|
||||
def set_handler(self, handler):
|
||||
self._pgp_raw_handler = handler
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user