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