fix (sessions): Recognise accountability sessions.
This commit is contained in:
@@ -78,7 +78,7 @@ class Session:
|
|||||||
# TODO: More reliable channel type determination
|
# TODO: More reliable channel type determination
|
||||||
if state.channel.id in tables.rented.row_cache:
|
if state.channel.id in tables.rented.row_cache:
|
||||||
channel_type = SessionChannelType.RENTED
|
channel_type = SessionChannelType.RENTED
|
||||||
elif state.channel.id in tables.accountability_rooms.row_cache:
|
elif state.channel.category and state.channel.category.id == lion.guild_settings.accountability_category.data:
|
||||||
channel_type = SessionChannelType.ACCOUNTABILITY
|
channel_type = SessionChannelType.ACCOUNTABILITY
|
||||||
else:
|
else:
|
||||||
channel_type = SessionChannelType.STANDARD
|
channel_type = SessionChannelType.STANDARD
|
||||||
|
|||||||
Reference in New Issue
Block a user