From 0769b16dd6b7115a0f2ed72e8a79cbddb288f19e Mon Sep 17 00:00:00 2001 From: AlberLC Date: Thu, 25 Jan 2024 21:37:15 +0100 Subject: [PATCH] Update changeable roles --- flanabot/bots/flana_disc_bot.py | 4 ++-- flanabot/constants.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flanabot/bots/flana_disc_bot.py b/flanabot/bots/flana_disc_bot.py index d8854d6..836142a 100644 --- a/flanabot/bots/flana_disc_bot.py +++ b/flanabot/bots/flana_disc_bot.py @@ -40,9 +40,9 @@ class FlanaDiscBot(DiscordBot, FlanaBot): self.register(self._on_restore_channel_names, (multibot_constants.KEYWORDS['reset'], multibot_constants.KEYWORDS['chat'])) async def _changeable_roles(self, group_: int | str | Chat | Message) -> list[Role]: + group_roles = await self.get_group_roles(group_) group_id = self.get_group_id(group_) - r = await self.get_group_roles(group_) - return [role for role in r if role.id in constants.CHANGEABLE_ROLES[Platform.DISCORD][group_id]] + return [role for role in group_roles if role.id in constants.CHANGEABLE_ROLES[Platform.DISCORD][group_id]] async def _heat_channel(self, channel: discord.VoiceChannel): async def set_fire_to(channel_key: str, depends_on: str, firewall=0): diff --git a/flanabot/constants.py b/flanabot/constants.py index 1ff6972..dff783e 100644 --- a/flanabot/constants.py +++ b/flanabot/constants.py @@ -41,7 +41,7 @@ CHANGEABLE_ROLES = defaultdict( Platform.DISCORD: defaultdict( list, { - 360868977754505217: [881238165476741161, 991454395663401072, 1033098591725699222], + 360868977754505217: [881238165476741161, 991454395663401072, 1033098591725699222, 1176639571677696173], 862823584670285835: [976660580939202610, 984269640752590868] } )