@discord-types/builders/embed/thumbnail
API reference for @discord-types/builders/embed/thumbnail
@discord-types/builders/embed/thumbnail
Types
Thumbnail
Raw Type
type Thumbnail = Thumbnail.Prototype, & {
url: string,
proxyUrl: string?,
height: number?,
width: number?
}
Intersection with variants:
JSON
Raw Type
type JSON = Thumbnail.Prototype.build({} :: any),
Functions
Thumbnail.Prototype.setUrl
[[ Set the image url for this embed. ]]
Function Signature
--[[
Set the image url for this embed.
]]
function Thumbnail.Prototype.setUrl(self: Thumbnail, url: string, proxyUrl: string?) -> Thumbnail end
Arguments
url
proxyUrl
This field is optional and may not be specified
Returns
ret1
Thumbnail.Prototype.setHeight
[[ Set the image height for this embed. ]]
Function Signature
--[[
Set the image height for this embed.
]]
function Thumbnail.Prototype.setHeight(self: Thumbnail, height: number) -> Thumbnail end
Arguments
height
Returns
ret1
Thumbnail.Prototype.setWidth
[[ Set the image width for this embed. ]]
Function Signature
--[[
Set the image width for this embed.
]]
function Thumbnail.Prototype.setWidth(self: Thumbnail, width: number) -> Thumbnail end
Arguments
width
Returns
ret1
Thumbnail.Prototype.build
[[ Responsible for building the Thumbnail JSON that can be parsed by the Discord API. ]]
Function Signature
--[[
Responsible for building the Thumbnail JSON that can be parsed by the Discord API.
]]
function Thumbnail.Prototype.build(self: Thumbnail) -> JSON end
Returns
ret1
Thumbnail.Interface.new
[[ Responsible for creating a new Thumbnail.
```lua
``` ]]
Function Signature
--[[
Responsible for creating a new Thumbnail.
\`\`\`lua
\`\`\`
]]
function Thumbnail.Interface.new(resource: {
url: string,
proxyUrl: string?,
height: number?,
width: number?
}?) -> Thumbnail end
Arguments
resource
This field is optional and may not be specified
{url: string, proxyUrl: string?, height: number?, width: number?}?
Returns
ret1
Last updated on