Thumbnail
Implementation of discords Thumbnail object as a Luau builder.
https://discord.com/developers/docs/resources/message#embed-object-embed-thumbnail-structure
Properties
The Thumbnail instance has no set properties!
Methods
The Thumbnail instance has no set methods!
Functions
setUrl
Thumbnail . setUrl () -> ()
self: Thumbnail
url: string
proxyUrl: string?
Set the image url for this embed.
setHeight
Thumbnail . setHeight () -> ()
self: Thumbnail
height: number
Set the image height for this embed.
setWidth
Thumbnail . setWidth () -> ()
self: Thumbnail
width: number
Set the image width for this embed.
build
Thumbnail . build () -> ()
self: Thumbnail
Responsible for building the Thumbnail JSON that can be parsed by the Discord API.
new
Responsible for creating a new Thumbnail.
local thumbnail = Thumbnail.new({ url = "https://example.com/image.png", height = 100, width = 100})