Corrected an issue where the wrong information was used for the channel ID
This commit is contained in:
parent
4d6c21dd87
commit
fcc3f8eb1b
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ class Picarto:
|
||||||
continue
|
continue
|
||||||
server_alerts = await config.get_content('server_alerts', {'server_id': server_id})
|
server_alerts = await config.get_content('server_alerts', {'server_id': server_id})
|
||||||
try:
|
try:
|
||||||
channel_id = server_alerts[0]
|
channel_id = server_alerts[0]['channel_id']
|
||||||
except IndexError:
|
except IndexError:
|
||||||
channel_id = server_id
|
channel_id = server_id
|
||||||
channel = self.bot.get_channel(channel_id)
|
channel = self.bot.get_channel(channel_id)
|
||||||
|
@ -92,7 +92,7 @@ class Picarto:
|
||||||
continue
|
continue
|
||||||
server_alerts = await config.get_content('server_alerts', {'server_id': server_id})
|
server_alerts = await config.get_content('server_alerts', {'server_id': server_id})
|
||||||
try:
|
try:
|
||||||
channel_id = server_alerts[0]
|
channel_id = server_alerts[0]['channel_id']
|
||||||
except IndexError:
|
except IndexError:
|
||||||
channel_id = server_id
|
channel_id = server_id
|
||||||
channel = self.bot.get_channel(channel_id)
|
channel = self.bot.get_channel(channel_id)
|
||||||
|
|
Loading…
Reference in a new issue