Remove config param from build_highcouncil_votes_str().

This commit is contained in:
2024-09-03 19:28:05 -04:00
parent 609fa38f20
commit b1f8e9d742
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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),
)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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.