Give a message for thread to attach to. Lets it be public.

This commit is contained in:
2023-11-08 15:44:19 -05:00
parent c38632ca21
commit c98bb5888c
+5 -1
View File
@@ -190,8 +190,12 @@ class ElectionCycle:
)
quarter_name: str = get_election_cycle_name(self.config)
thread_msg: nextcord.Message = await parent.send(content=quarter_name)
# create new entry into database.
thread: nextcord.Thread = await parent.create_thread(name=quarter_name)
thread: nextcord.Thread = await parent.create_thread(
name=quarter_name, message=thread_msg
)
with Session(engine) as session:
new_cycle = ElectionInformation(
ElectionCycle=quarter_name, ThreadId=thread.id