Update changeable roles
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
@@ -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]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user