1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Handle if the channel returned is None

This commit is contained in:
Phxntxm 2017-04-23 15:25:42 -05:00
parent 99ac6fdd6c
commit 90598f26bf

View file

@ -65,6 +65,8 @@ class Twitch:
else:
channel_id = int(s_id)
channel = server.get_channel(channel_id)
if channel is None:
continue
try:
await channel.send("{} has just gone live! View their stream at <{}>".format(member.display_name, data['twitch_url']))
except discord.Forbidden: