diff --git a/classes/election.py b/classes/election.py index bc229bb..37d95f7 100644 --- a/classes/election.py +++ b/classes/election.py @@ -267,7 +267,7 @@ class Election: election_thread: nextcord.Thread = self.guild.get_thread(self.get_election_info().ThreadId) await election_thread.send(message) vote_msg = await election_thread.send( - build_highcouncil_votes_str(settings, self.guild), + build_highcouncil_votes_str(self.guild), view=VoteHighcouncilView(self.guild), ) diff --git a/classes/voting_highcouncil_views.py b/classes/voting_highcouncil_views.py index 6b595bd..9ccd3ca 100644 --- a/classes/voting_highcouncil_views.py +++ b/classes/voting_highcouncil_views.py @@ -70,7 +70,7 @@ class VoteSelect(nextcord.ui.StringSelect): session.execute(stmt) session.commit() - vote_message_str = build_highcouncil_votes_str(settings, interaction.guild) + vote_message_str = build_highcouncil_votes_str(interaction.guild) vote_msg: nextcord.Message = await interaction.channel.fetch_message(vote_msg_id) await vote_msg.edit(content=vote_message_str) diff --git a/utils.py b/utils.py index a251706..b176077 100644 --- a/utils.py +++ b/utils.py @@ -155,7 +155,7 @@ def build_votes_str(guild: nextcord.Guild) -> str: return votes_str -def build_highcouncil_votes_str(config: DakinySettings, guild: nextcord.Guild) -> str: +def build_highcouncil_votes_str(guild: nextcord.Guild) -> str: """ Creates a string that contains all high council nominees and their votes to be sent as a discord message.