LogoAntiRaid

@discord-types/builders/message/poll/media

API reference for @discord-types/builders/message/poll/media

@discord-types/builders/message/poll/media

Types

PollMedia

Raw Type
type PollMedia = PollMedia.Prototype, & {
	text: string?,

	emoji: emojiBuilder.JSON?
}

Intersection with variants:

Variant 2
PropTypeDescription
text?
-
emoji?
-

JSON

Raw Type
type JSON = PollMedia.Prototype.build(nil :: any),

Functions

PollMedia.Prototype.setText

[[ Sets the text for the PollMedia. ]]

Function Signature
--[[
	Sets the text for the PollMedia.
]]
function PollMedia.Prototype.setText(self: PollMedia, text: string) -> PollMedia end

Arguments

text

string

Returns

ret1

PollMedia

PollMedia.Prototype.setEmoji

[[ Responsible for setting the emoji for the PollMedia. ]]

Function Signature
--[[
	Responsible for setting the emoji for the PollMedia.
]]
function PollMedia.Prototype.setEmoji(self: PollMedia, emoji: emojiBuilder.JSON) -> PollMedia end

Arguments

emoji

emojiBuilder.JSON

Returns

ret1

PollMedia

PollMedia.Prototype.build

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

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

Returns

ret1

JSON

PollMedia.Interface.new

[[ Responsible for creating a new PollMedia.

```lua

``` ]]

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

	\`\`\`lua
	
	\`\`\`
]]
function PollMedia.Interface.new(resource: {
		text: string?,

		emoji: emojiBuilder.JSON?
	}?) -> PollMedia end

Arguments

resource

This field is optional and may not be specified

{text: string?, emoji: emojiBuilder.JSON?}?

Returns

ret1

PollMedia

Last updated on