(self, hook: commands.StartHook)
| 495 | self.hook_handlers = hook_handlers |
| 496 | |
| 497 | async def handle_hook(self, hook: commands.StartHook) -> None: |
| 498 | if hook.name in self.hook_handlers: |
| 499 | self.hook_handlers[hook.name](*hook.args()) |
| 500 | |
| 501 | |
| 502 | if __name__ == "__main__": # pragma: no cover |