fix (schedule): Setting tweaks and more bugfixes.

Add the schedule dashboard to the config dashboard.
Move the schedule cost to the second page.
Allow categories to be selected for the session room.

Fix an issue where blacklist role would be checked with no guild data.
Fix typos in session unloading.
Delay session notification.
More logging.
This commit is contained in:
2023-07-08 12:46:49 +03:00
parent d7fa97a12b
commit aebd5375c7
6 changed files with 52 additions and 28 deletions

View File

@@ -22,8 +22,8 @@ class ScheduleSettingUI(ConfigUI):
ScheduleSettings.SessionLobby,
ScheduleSettings.SessionRoom,
ScheduleSettings.SessionChannels,
ScheduleSettings.ScheduleCost,
), (
ScheduleSettings.ScheduleCost,
ScheduleSettings.AttendanceReward,
ScheduleSettings.AttendanceBonus,
ScheduleSettings.MinAttendance,
@@ -89,7 +89,7 @@ class ScheduleSettingUI(ConfigUI):
))
# Room channel selector
@select(cls=ChannelSelect, channel_types=[discord.ChannelType.voice],
@select(cls=ChannelSelect, channel_types=[discord.ChannelType.category, discord.ChannelType.voice],
min_values=0, max_values=1,
placeholder='ROOM_PLACEHOLDER')
async def room_menu(self, selection: discord.Interaction, selected: ChannelSelect):