Author
Implementation of discords Author object as a Luau builder.
https://discord.com/developers/docs/resources/message#embed-object-embed-author-structure
Summary
Properties
Author.name :: string?Author.url :: string?Author.iconUrl :: string?Author.proxyIconUrl :: string?Properties
Section titled “Properties”The name of the author.
The url of the author.
iconUrl
Section titled “iconUrl”The url of author’s icon image.
proxyIconUrl
Section titled “proxyIconUrl”A proxied url of author’s icon image.
Methods
Section titled “Methods”setName
Section titled “setName”Author : setName ( name ) -> Author
Set the image url for this embed.
Parameters
| name: string |
Returns
| Author |
setUrl
Section titled “setUrl”Author : setUrl ( url ) -> Author
Set the image height for this embed.
Parameters
| url: string |
Returns
| Author |
setIcon
Section titled “setIcon”Author : setIcon ( iconUrl , proxyIconUrl ) -> Author
Set the image height for this embed.
Author : build ( ) -> JSON
Responsible for building the Author JSON that can be parsed by the Discord API.
Returns
| JSON |
Functions
Section titled “Functions”Author . new ( resource ) -> Author
Responsible for creating a new Author.