Give the elect role and set elected in database.
This commit is contained in:
@@ -56,7 +56,7 @@ class VoteSelect(nextcord.ui.StringSelect):
|
||||
session.commit()
|
||||
|
||||
vote_message_str = build_votes_str(self.config)
|
||||
vote_msg = await interaction.channel.fetch_message(vote_msg_id)
|
||||
vote_msg: nextcord.Message = await interaction.channel.fetch_message(vote_msg_id)
|
||||
await vote_msg.edit(content=vote_message_str)
|
||||
|
||||
if voted_for is not None:
|
||||
|
||||
Reference in New Issue
Block a user