Don't need to check if it's None cause we can handle None Exception

Added another function to completely remove the modlogs value from dict
pull/8/head
sgoudham 4 years ago
parent 8f97cb51cd
commit 16ec0258c1

@ -93,12 +93,14 @@ def del_modlog_channel(guildid):
del modlogs[guildid]
def remove_modlog_channel(guildid):
modlogs[guildid] = None
# Get the modlog channel of the guild that the user is in
def get_modlog_for_guild(guildid):
channel = modlogs[guildid]
if channel is not None:
return channel
return None
# Before initialising the cache. Store the prefixes from the database within the cache

Loading…
Cancel
Save