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

Properties

The Author instance has no set properties!

Methods

The Author instance has no set methods!

Functions

setName

Author . setName (

     self: Author
     name: string
)  -> ()

Set the image url for this embed.

setUrl

Author . setUrl (

     self: Author
     url: string
)  -> ()

Set the image height for this embed.

setIcon

Author . setIcon (

     self: Author
     iconUrl: string
     proxyIconUrl: string?
)  -> ()

Set the image height for this embed.

build

Author . build (

     self: Author
)  -> ()

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

new

Author . new (

     resource: {
       name: string?,
       url: string?,
       iconUrl: string?,
       proxyIconUrl: string?,
    }
)  -> ()

Responsible for creating a new Author.