Skip to content

Commit

Permalink
Fix Channel that id was incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
SeoulSKY committed Jun 29, 2024
1 parent 4f6686e commit f8df98e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/discord/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand All @@ -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
"""
Expand All @@ -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
"""
Expand Down

0 comments on commit f8df98e

Please sign in to comment.