1
0
Fork 0
mirror of synced 2024-06-22 16:20:23 +12:00

Corrected an issue where the wrong information was used for the channel ID

This commit is contained in:
Phxntxm 2016-11-12 18:35:38 -06:00
parent 4d6c21dd87
commit fcc3f8eb1b

View file

@ -69,7 +69,7 @@ class Picarto:
continue
server_alerts = await config.get_content('server_alerts', {'server_id': server_id})
try:
channel_id = server_alerts[0]
channel_id = server_alerts[0]['channel_id']
except IndexError:
channel_id = server_id
channel = self.bot.get_channel(channel_id)
@ -92,7 +92,7 @@ class Picarto:
continue
server_alerts = await config.get_content('server_alerts', {'server_id': server_id})
try:
channel_id = server_alerts[0]
channel_id = server_alerts[0]['channel_id']
except IndexError:
channel_id = server_id
channel = self.bot.get_channel(channel_id)