Video
Implementation of discords Video object as a Luau builder.
https://discord.com/developers/docs/resources/message#embed-object-embed-video-structure
Summary
Properties
Section titled “Properties”Source url of video
proxyUrl
Section titled “proxyUrl”A proxied url of the video
height
Section titled “height”Height of video
Width of video
Methods
Section titled “Methods”setUrl
Section titled “setUrl”Video : setUrl ( url , proxyUrl ) -> Video
Set the image url for this embed.
setHeight
Section titled “setHeight”Video : setHeight ( height ) -> Video
Set the image height for this embed.
Parameters
| height: number |
Returns
| Video |
setWidth
Section titled “setWidth”Video : setWidth ( width ) -> Video
Set the image width for this embed.
Parameters
| width: number |
Returns
| Video |
Video : build ( ) -> JSON
Responsible for building the Video JSON that can be parsed by the Discord API.
Returns
| JSON |
Functions
Section titled “Functions”Video . new ( resource ) -> Video
Responsible for creating a new Video.
local video = Video.new({ url = "https://example.com/video.mp4", height = 720, width = 1280})