@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:
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
proxyUrl
This field is optional and may not be specified
Returns
ret1
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
Returns
ret1
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
Returns
ret1
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
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
Last updated on