Skip to content

Commit 273e795

Browse files
committed
wait until thread is ready internally
1 parent a314eab commit 273e795

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

bot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,6 @@ async def process_modmail(self, message):
654654
await message.author.send(embed=self.blocked_em)
655655
else:
656656
thread = await self.threads.find_or_create(message.author)
657-
await thread.wait_until_ready()
658657
await thread.send(message)
659658

660659
@commands.command()

utils/modmail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async def send(self, message, destination=None, from_mod=False, delete_message=T
100100
em.set_author(name=str(author), icon_url=author.avatar_url)
101101
em.set_footer(text=f'User - {message.id}')
102102

103-
103+
await self.wait_until_ready()
104104
await destination.trigger_typing()
105105
await destination.send(embed=em)
106106

0 commit comments

Comments
 (0)