Update changeable roles

This commit is contained in:
AlberLC
2024-01-25 21:37:15 +01:00
parent 024c01b46d
commit 0769b16dd6
2 changed files with 3 additions and 3 deletions

View File

@@ -40,9 +40,9 @@ class FlanaDiscBot(DiscordBot, FlanaBot):
self.register(self._on_restore_channel_names, (multibot_constants.KEYWORDS['reset'], multibot_constants.KEYWORDS['chat'])) 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]: 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_) group_id = self.get_group_id(group_)
r = await self.get_group_roles(group_) return [role for role in group_roles if role.id in constants.CHANGEABLE_ROLES[Platform.DISCORD][group_id]]
return [role for role in r if role.id in constants.CHANGEABLE_ROLES[Platform.DISCORD][group_id]]
async def _heat_channel(self, channel: discord.VoiceChannel): async def _heat_channel(self, channel: discord.VoiceChannel):
async def set_fire_to(channel_key: str, depends_on: str, firewall=0): async def set_fire_to(channel_key: str, depends_on: str, firewall=0):

View File

@@ -41,7 +41,7 @@ CHANGEABLE_ROLES = defaultdict(
Platform.DISCORD: defaultdict( Platform.DISCORD: defaultdict(
list, list,
{ {
360868977754505217: [881238165476741161, 991454395663401072, 1033098591725699222], 360868977754505217: [881238165476741161, 991454395663401072, 1033098591725699222, 1176639571677696173],
862823584670285835: [976660580939202610, 984269640752590868] 862823584670285835: [976660580939202610, 984269640752590868]
} }
) )