LogoAntiRaid

@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:

Variant 2
PropTypeDescription
url
-
proxyUrl?
-
height?
-
width?
-

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

string

proxyUrl

This field is optional and may not be specified

string?

Returns

ret1

Thumbnail

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

number

Returns

ret1

Thumbnail

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

number

Returns

ret1

Thumbnail

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

JSON

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

Thumbnail

Last updated on