diff --git a/examples/discord/main.py b/examples/discord/main.py index 373049a..6b60b05 100644 --- a/examples/discord/main.py +++ b/examples/discord/main.py @@ -29,7 +29,7 @@ def __init__(self): self._notifier = AsyncYouTubeNotifier() self._listeners: dict[str, list[TextChannel]] = {} - async def listener(notification: Notification): + async def listener(notification: Notification) -> None: """ Listener called when a video is uploaded """ @@ -40,7 +40,7 @@ async def listener(notification: Notification): self._notifier.add_upload_listener(listener) - async def on_ready(self): + async def on_ready(self) -> None: """ Called when the client is ready """ @@ -49,7 +49,7 @@ async def on_ready(self): await self._notifier.serve() - async def on_message(self, message: discord.Message): + async def on_message(self, message: discord.Message) -> None: """ Called when a message is received """