Give a message for thread to attach to. Lets it be public.
This commit is contained in:
@@ -190,8 +190,12 @@ class ElectionCycle:
|
|||||||
)
|
)
|
||||||
quarter_name: str = get_election_cycle_name(self.config)
|
quarter_name: str = get_election_cycle_name(self.config)
|
||||||
|
|
||||||
|
thread_msg: nextcord.Message = await parent.send(content=quarter_name)
|
||||||
|
|
||||||
# create new entry into database.
|
# 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:
|
with Session(engine) as session:
|
||||||
new_cycle = ElectionInformation(
|
new_cycle = ElectionInformation(
|
||||||
ElectionCycle=quarter_name, ThreadId=thread.id
|
ElectionCycle=quarter_name, ThreadId=thread.id
|
||||||
|
|||||||
Reference in New Issue
Block a user