Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Workaround for DM bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Téo Haÿs committed Aug 7, 2023
1 parent daf6d8b commit 01343c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kayo/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,5 @@ async def send_match_alert(channel_id, match):
match (Match): Match object for which we wish to send an Alert.
"""
channel = instance.bot.get_channel(channel_id)
await channel.send(embed=await embed_alert(match))
if channel is not None:
await channel.send(embed=await embed_alert(match))

0 comments on commit 01343c7

Please sign in to comment.