LogoAntiRaid

@discord-types/builders/message/components/selectMenu/defaultValue

API reference for @discord-types/builders/message/components/selectMenu/defaultValue

@discord-types/builders/message/components/selectMenu/defaultValue

Types

DefaultValue

Raw Type
type DefaultValue = DefaultValue.Prototype, & {
	id: string,

	type: messageTypes.SelectDefaultValueType
}

Intersection with variants:

Variant 2
PropTypeDescription
id
-
type
-

JSON

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

Functions

DefaultValue.Prototype.setId

[[

]]

Function Signature
--[[
	
]]
function DefaultValue.Prototype.setId(self: DefaultValue, id: string) -> DefaultValue end

Arguments

id

string

Returns

ret1

DefaultValue

DefaultValue.Prototype.setType

[[

]]

Function Signature
--[[
	
]]
function DefaultValue.Prototype.setType(self: DefaultValue, type: messageTypes.SelectDefaultValueType) -> DefaultValue end

Arguments

type

messageTypes.SelectDefaultValueType

Returns

ret1

DefaultValue

DefaultValue.Prototype.build

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

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

Returns

ret1

JSON

DefaultValue.Interface.new

[[ Responsible for creating a new DefaultValue.

```lua

``` ]]

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

	\`\`\`lua
	
	\`\`\`
]]
function DefaultValue.Interface.new(resource: {
		id: string,

		type: messageTypes.SelectDefaultValueType
	}?) -> DefaultValue end

Arguments

resource

This field is optional and may not be specified

{id: string, type: messageTypes.SelectDefaultValueType}?

Returns

ret1

DefaultValue

Last updated on