Correct birthday channel id lookup
This commit is contained in:
parent
f513b92cc7
commit
6ab976681c
|
@ -57,7 +57,7 @@ class Birthday:
|
||||||
# Set our default to either the one set, or the default channel of the server
|
# Set our default to either the one set, or the default channel of the server
|
||||||
default_channel_id = s.get('notifications', {}).get('default') or server.id
|
default_channel_id = s.get('notifications', {}).get('default') or server.id
|
||||||
# If it is has been overriden by picarto notifications setting, use this
|
# If it is has been overriden by picarto notifications setting, use this
|
||||||
channel_id = s.get('notifications', {}).get('birthdays') or default_channel_id
|
channel_id = s.get('notifications', {}).get('birthday') or default_channel_id
|
||||||
# Now get the channel based on that ID
|
# Now get the channel based on that ID
|
||||||
channel = server.get_channel(int(channel_id)) or server.default_channel
|
channel = server.get_channel(int(channel_id)) or server.default_channel
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue