mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-21 18:18:17 +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