Skip to content

Footer

Implementation of discords Footer object as a Luau builder.

https://discord.com/developers/docs/resources/message#embed-object-embed-footer-structure

Footer.text  :: string?

The text content that appears in the footer.

Footer.iconUrl  :: string?

The URL of the footer icon.

Footer.proxyIconUrl  :: string?

The proxied URL of the footer icon.

Footer : setText ( text )  -> Footer

Sets the footer text content.

Parameters

text: string

Returns

Footer
Footer : setIcon ( iconUrl proxyIconUrl )  -> Footer

Sets the footer icon URL and optional proxy icon URL.

Parameters

iconUrl: string
proxyIconUrl: string?

Returns

Footer
Footer : build ( )  -> JSON

Responsible for building the Footer JSON that can be parsed by the Discord API.

Returns

JSON
Footer . new ( resource )  -> Footer

Responsible for creating a new Footer.

local footer = Footer.new({
text = "Footer text",
iconUrl = "https://example.com/icon.png"
})

Parameters

resource: {
text: string?,
iconUrl: string?,
proxyIconUrl: string?,
}

Returns

Footer