From c98bb5888c81f5d4732f8598decb94085673d463 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Wed, 8 Nov 2023 15:44:19 -0500 Subject: [PATCH] Give a message for thread to attach to. Lets it be public. --- classes/election_cycle.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/election_cycle.py b/classes/election_cycle.py index 0442408..7a7fafb 100644 --- a/classes/election_cycle.py +++ b/classes/election_cycle.py @@ -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