Start work on vote selection. Modal does not work.
build_develop / build (push) Successful in 1m25s

This commit is contained in:
2023-11-02 17:26:05 -04:00
parent e7bd608017
commit 626cca8b81
4 changed files with 58 additions and 2 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ from sqlalchemy import select
from sqlalchemy.orm import Session
from classes.nominate_views import NominateView
from classes.voting_views import VoteView
from config import DakinyConfig
from database_setup.sql_data_classes import CouncilMembers, ElectionInformation, Votes, engine
from utils import get_datetime, get_election_cycle_name
@@ -204,7 +205,7 @@ class ElectionCycle:
message = self.build_vote_start()
clan_member_role: nextcord.Role = self.guild.get_role(self.config.params.clan_member_role_id)
election_channel: nextcord.TextChannel = self.guild.get_channel(self.get_election_info().ElectionChannel)
await election_channel.send(message)
await election_channel.send(message, view=VoteView())
await election_channel.set_permissions(clan_member_role, send_messages=False)
async def voting_end_action(self) -> None: