Event hook
Defines an interface for event hooks.
References
NONE
BaseEventHook
Bases: ABC
An abstract base class for all event hooks.
__call__(event)
abstractmethod
async
Applies the hook to the event.
This abstract method must be implemented by subclasses to define how the hook is applied to the event.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event |
Event
|
The event to apply the hook to. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Event |
Event
|
The event after the hook is applied. |