Update
This commit is contained in:
parent
0c4b941da3
commit
5e828fc078
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class threadsummary(commands.Cog):
|
||||||
return
|
return
|
||||||
|
|
||||||
@commands.Cog.listener('on_thread_create')
|
@commands.Cog.listener('on_thread_create')
|
||||||
async def threadupdatehandler(self, thread: nextcord.Thread):
|
async def threacreatehandler(self, thread: nextcord.Thread):
|
||||||
pins = await thread.parent.pins()
|
pins = await thread.parent.pins()
|
||||||
print(pins, file=sys.stderr)
|
print(pins, file=sys.stderr)
|
||||||
for t in pins:
|
for t in pins:
|
||||||
|
@ -58,7 +58,7 @@ class threadsummary(commands.Cog):
|
||||||
return
|
return
|
||||||
|
|
||||||
@commands.Cog.listener('on_thread_delete')
|
@commands.Cog.listener('on_thread_delete')
|
||||||
async def threadupdatehandler(self, thread: nextcord.Thread):
|
async def threaddelhandler(self, thread: nextcord.Thread):
|
||||||
pins = await thread.parent.pins()
|
pins = await thread.parent.pins()
|
||||||
for t in pins:
|
for t in pins:
|
||||||
if t.author.id == self.bot.application_id and t.content.split("\n")[0] == f"Active threads in {thread.parent.jump_url}":
|
if t.author.id == self.bot.application_id and t.content.split("\n")[0] == f"Active threads in {thread.parent.jump_url}":
|
||||||
|
|
Loading…
Reference in a new issue