Footer
Implementation of discords Footer object as a Luau builder.
https://discord.com/developers/docs/resources/message#embed-object-embed-footer-structure
Summary
Properties
Section titled “Properties”The text content that appears in the footer.
iconUrl
Section titled “iconUrl”The URL of the footer icon.
proxyIconUrl
Section titled “proxyIconUrl”The proxied URL of the footer icon.
Methods
Section titled “Methods”setText
Section titled “setText”Footer : setText ( text ) -> Footer
Sets the footer text content.
Parameters
| text: string |
Returns
| Footer |
setIcon
Section titled “setIcon”Footer : setIcon ( iconUrl , proxyIconUrl ) -> Footer
Sets the footer icon URL and optional proxy icon URL.
Footer : build ( ) -> JSON
Responsible for building the Footer JSON that can be parsed by the Discord API.
Returns
| JSON |
Functions
Section titled “Functions”Footer . new ( resource ) -> Footer
Responsible for creating a new Footer.
local footer = Footer.new({ text = "Footer text", iconUrl = "https://example.com/icon.png"})