Skip to content

Commit

Permalink
Fix text
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Nov 19, 2024
1 parent 915a3f9 commit adec759
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions plugins/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,9 @@ async def hey(self, ctx: commands.Context):
"content": [
{
"type": "text",
"text": {
"value": f"{m.author_display_name_with_id}: {m.clean_content}"
if m.author_display_name_with_id
else m.clean_content,
},
"text": f"{m.author_display_name_with_id}: {m.clean_content}"
if m.author_display_name_with_id
else m.clean_content,
},
*({"type": "image_url", "image_url": {"url": url}} for url in m.image_urls),
],
Expand Down

0 comments on commit adec759

Please sign in to comment.