Skip to content

Commit c692720

Browse files
committed
🏷️ Add abstract method listen to base class for event handling
1 parent fbd9a50 commit c692720

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

discord/gears/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ def add_listener(
6161
def remove_listener(
6262
self, callback: EventCallback[E], event: type[E] | Undefined = MISSING, is_instance_function: bool = False
6363
) -> None: ...
64+
65+
@abstractmethod
66+
def listen(self, *args: Any, **kwargs: Any) -> Callable[[Callable[[E], Awaitable[None]]], EventCallback[E]]: ...

0 commit comments

Comments
 (0)