LogoAntiRaid

@discord-types/builders/embed/video

API reference for @discord-types/builders/embed/video

@discord-types/builders/embed/video

Types

Video

Raw Type
type Video = Video.Prototype, & {
	url: string,

	proxyUrl: string?,

	height: number?,

	width: number?
}

Intersection with variants:

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

JSON

Raw Type
type JSON = Video.Prototype.build({} :: any),

Functions

Video.Prototype.setUrl

[[ Set the image url for this embed. ]]

Function Signature
--[[
	Set the image url for this embed.
]]
function Video.Prototype.setUrl(self: Video, url: string, proxyUrl: string?) -> Video end

Arguments

url

string

proxyUrl

This field is optional and may not be specified

string?

Returns

ret1

Video

Video.Prototype.setHeight

[[ Set the image height for this embed. ]]

Function Signature
--[[
	Set the image height for this embed.
]]
function Video.Prototype.setHeight(self: Video, height: number) -> Video end

Arguments

height

number

Returns

ret1

Video

Video.Prototype.setWidth

[[ Set the image width for this embed. ]]

Function Signature
--[[
	Set the image width for this embed.
]]
function Video.Prototype.setWidth(self: Video, width: number) -> Video end

Arguments

width

number

Returns

ret1

Video

Video.Prototype.build

[[ Responsible for building the Video JSON that can be parsed by the Discord API. ]]

Function Signature
--[[
	Responsible for building the Video JSON that can be parsed by the Discord API.
]]
function Video.Prototype.build(self: Video) -> JSON end

Returns

ret1

JSON

Video.Interface.new

[[ Responsible for creating a new Video.

```lua

``` ]]

Function Signature
--[[
	Responsible for creating a new Video.

	\`\`\`lua
	
	\`\`\`
]]
function Video.Interface.new(resource: {
		url: string,

		proxyUrl: string?,

		height: number?,

		width: number?
	}?) -> Video end

Arguments

resource

This field is optional and may not be specified

{url: string, proxyUrl: string?, height: number?, width: number?}?

Returns

ret1

Video

Last updated on