Skip to content

Commit

Permalink
[Reminders] Fixed error if the reminder is for a message with an embed.
Browse files Browse the repository at this point in the history
  • Loading branch information
AAA3A-AAA3A committed Jul 10, 2023
1 parent 2002eca commit 7da0518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reminders/reminders.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ async def remindme(
)
if message_or_text.clean_content
else None,
"embed": message_or_text.embeds[0] if message_or_text.embeds else None,
"embed": message_or_text.embeds[0].to_dict() if message_or_text.embeds else None,
"message_author": {
"display_name": message_or_text.author.display_name,
"display_avatar": message_or_text.author.display_avatar.url,
Expand Down Expand Up @@ -558,7 +558,7 @@ async def remind(
)
if message_or_text.clean_content
else None,
"embed": message_or_text.embeds[0] if message_or_text.embeds else None,
"embed": message_or_text.embeds[0].to_dict() if message_or_text.embeds else None,
"message_author": {
"display_name": message_or_text.author.display_name,
"display_avatar": message_or_text.author.display_avatar.url,
Expand Down

0 comments on commit 7da0518

Please sign in to comment.