SEmbed API Reference

class sembed.SEmbed(title: str = '', description: str = '', *, url: str = '', timestamp: Optional[datetime.datetime] = None, color: Optional[Union[discord.colour.Colour, int]] = None, image_url: Optional[str] = None, thumbnail_url: Optional[str] = None, fields: Optional[List[sembed.sembed.SField]] = None, author: Optional[Union[sembed.sembed.SAuthor, str]] = None, footer: Optional[Union[sembed.sembed.SFooter, str]] = None, **kwargs)

Represents a Discord embed. Every attribute can be set during initialisation.

title

The title of the embed.

Type

str

description

The description of the embed.

Type

str

url

The URL of the embed.

Type

str

timestamp

The timestamp of the embed content. This could be a naive or aware datetime.

Type

datetime.datetime

color

The color code of the embed.

Type

Union[discord.Color, int]

image_url

The image URL of the embed.

Type

str

thumbnail_url

The thumbnail URL of the embed.

Type

str

fields

Fields of the embed. Up to 10.

Type

List[SEmbed]

author

The author of the embed.

Type

Union[SAuthor, str]

footer

The footer of the embed.

Type

Union[SFooter, str]

Field Class

class sembed.SAuthor(name: str, icon_url: Optional[str] = None, url: Optional[str] = None)

Represents an Author. Every attribute can be set during initialisation.

name

The name of the author.

Type

str

icon_url

The icon URL of the author.

Type

str

url

The URL of the author.

Type

str

class sembed.SField(name: str, value: str, inline: bool = True)

Represents a Field. Every attribute can be set during initialisation.

name

The name of the field.

Type

str

value

The value of the field.

Type

str

inline

Whether the field should be displayed inline.

Type

bool

class sembed.SFooter(text: str, icon_url: str)

Represents a Footer. Every attribute can be set during initialisation.

text

The text of the footer.

Type

str

icon_url

The icon URL of the footer.

Type

str