Skip to content

Commit

Permalink
Support inline attribute on fields
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano authored Nov 14, 2023
1 parent b1ebbc3 commit 519768d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion post_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions schema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<xs:element type="xs:string" name="title"/>
<xs:element type="xs:string" name="content"/>
</xs:sequence>
<xs:attribute type="xs:boolean" name="inline" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
Expand Down

0 comments on commit 519768d

Please sign in to comment.