Skip to content

Author

Implementation of discords Author object as a Luau builder.

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

Author.name  :: string?

The name of the author.

Author.url  :: string?

The url of the author.

Author.iconUrl  :: string?

The url of author’s icon image.

Author.proxyIconUrl  :: string?

A proxied url of author’s icon image.

Author : setName ( name )  -> Author

Set the image url for this embed.

Parameters

name: string

Returns

Author
Author : setUrl ( url )  -> Author

Set the image height for this embed.

Parameters

url: string

Returns

Author
Author : setIcon ( iconUrl proxyIconUrl )  -> Author

Set the image height for this embed.

Parameters

iconUrl: string
proxyIconUrl: string?

Returns

Author
Author : build ( )  -> JSON

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

Returns

JSON
Author . new ( resource )  -> Author

Responsible for creating a new Author.

Parameters

resource: {
name: string?,
url: string?,
iconUrl: string?,
proxyIconUrl: string?,
}

Returns

Author