CreateModal
Defined in: packages/builders/src/components.ts:403
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CreateModal():
CreateModal
Returns
Section titled “Returns”CreateModal
Methods
Section titled “Methods”addComponents()
Section titled “addComponents()”addComponents(…
components):this
Defined in: packages/builders/src/components.ts:417
Parameters
Section titled “Parameters”components
Section titled “components”…object[]
Returns
Section titled “Returns”this
addTextInputs()
Section titled “addTextInputs()”addTextInputs(…
inputs):this
Defined in: packages/builders/src/components.ts:430
Adds text inputs, each in its own action row (Discord’s modal layout).
Parameters
Section titled “Parameters”inputs
Section titled “inputs”Text inputs, at most 5 per modal.
Returns
Section titled “Returns”this
setCustomId()
Section titled “setCustomId()”setCustomId(
value):this
Defined in: packages/builders/src/components.ts:407
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
setTitle()
Section titled “setTitle()”setTitle(
value):this
Defined in: packages/builders/src/components.ts:412
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
toJSON()
Section titled “toJSON()”toJSON():
APIModalComponent
Defined in: packages/builders/src/components.ts:437