diff --git a/bot_messages/highcouncil_election.txt b/bot_messages/highcouncil_election.txt index b6fdeb9..51ee5e9 100644 --- a/bot_messages/highcouncil_election.txt +++ b/bot_messages/highcouncil_election.txt @@ -8,6 +8,6 @@ From {highcouncil_election_announce} to {highcouncil_election_start}, you will b Discord Server Manager Each member of the CCE can cast one for each category by using the emotes: <:Rank_Owner:479008325137072155> for Clan Leader and <:Rank_Deputy:479008295319896064> for Discord Server Manager. -If needed, the icon 🤷 can be used to abstain to vote in any or both categories and it should be apply to all candidates of that category. +If needed, the icon 🤷 can be used to abstain to vote in any or both categories and it should be applied to all candidates of that category. -Votes can be cast until the {highcouncil_election_end}, so we can announce and have everyone set up to start the term by {term_start}. \ No newline at end of file +Votes can be cast until {highcouncil_election_end}, so we can announce and have everyone set up to start the term by {term_start}. \ No newline at end of file diff --git a/classes/election_cycle.py b/classes/election_cycle.py index 3468154..9ecdca5 100644 --- a/classes/election_cycle.py +++ b/classes/election_cycle.py @@ -155,6 +155,8 @@ class ElectionCycle: # create new entry into database. election_channel: nextcord.TextChannel = await category.create_text_channel(quarter_name) + clan_member_role: nextcord.Role = self.guild.get_role(self.config.params.clan_member_role_id) + await election_channel.set_permissions(clan_member_role, send_messages=True, add_reactions=True) with Session(engine) as session: new_cycle = ElectionInformation(ElectionCycle=quarter_name, ElectionChannel=election_channel.id) session.add(new_cycle) @@ -186,8 +188,10 @@ class ElectionCycle: message = self.build_highcouncil_election_announce() council_elect_role: nextcord.Role = self.guild.get_role(self.config.params.clan_council_elect_role_id) election_channel: nextcord.TextChannel = self.guild.get_channel(self.get_election_info().ElectionChannel) + clan_member_role: nextcord.Role = self.guild.get_role(self.config.params.clan_member_role_id) await election_channel.send(message) - await election_channel.set_permissions(council_elect_role, send_messages=True) + await election_channel.set_permissions(council_elect_role, send_messages=True, add_reactions=True) + await election_channel.set_permissions(clan_member_role, add_reactions=False) async def highcouncil_election_start_action(self) -> None: """