Skip to content

Commit 8d72b79

Browse files
committed
Fix error when reacting on confirm thread creation message.
1 parent 68fa13a commit 8d72b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/thread.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ async def delete_message(
658658
await asyncio.gather(*tasks)
659659

660660
async def find_linked_message_from_dm(self, message, either_direction=False):
661-
if either_direction and message.embeds:
661+
if either_direction and message.embeds and message.embeds[0].author.url:
662662
compare_url = message.embeds[0].author.url
663663
compare_id = compare_url.split("#")[-1]
664664
else:

0 commit comments

Comments
 (0)