From 519768d67857a3ea08b37cd04782bd7f4ea9bd9a Mon Sep 17 00:00:00 2001 From: Yuto Takano Date: Tue, 14 Nov 2023 17:45:06 +0100 Subject: [PATCH] Support `inline` attribute on fields --- post_updater.py | 2 +- schema.xsd | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/post_updater.py b/post_updater.py index 642f12f..40bafa3 100644 --- a/post_updater.py +++ b/post_updater.py @@ -94,7 +94,7 @@ async def post_or_update(): field = discord.EmbedField( name=getattr(field_tag.find("./title"), "text", ""), value=getattr(field_tag.find("./content"), "text", ""), - inline=False + inline=bool(field_tag.attrib.get("inline", False)) ) embed.append_field(field) diff --git a/schema.xsd b/schema.xsd index 6294a67..716df4c 100644 --- a/schema.xsd +++ b/schema.xsd @@ -36,6 +36,7 @@ +