Allow clan members to send messages to new channel.
build_develop / build (push) Has been cancelled

This commit is contained in:
2023-09-20 20:14:32 -04:00
parent a4c02b2f77
commit 8cf66351dd
+2
View File
@@ -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)
with Session(engine) as session:
new_cycle = ElectionInformation(ElectionCycle=quarter_name, ElectionChannel=election_channel.id)
session.add(new_cycle)