Skip to content

Defined in: zaun/js/index.d.ts:442

  • Builder<{ components: ComponentData[]; custom_id: string; title: string; }>

new ModalBuilder(data?): ModalBuilder

Defined in: zaun/js/index.d.ts:443

object

ModalBuilder

Builder<{ custom_id: string; title: string; components: ComponentData[] }>.constructor

data: object

Defined in: zaun/js/index.d.ts:410

components: ComponentData[]

custom_id: string

title: string

Builder.data

addField(label, input, description?): this

Defined in: zaun/js/index.d.ts:446

string

ComponentData | { toJSON(): ComponentData; }

string

this


addText(content): this

Defined in: zaun/js/index.d.ts:447

string

this


setCustomId(id): this

Defined in: zaun/js/index.d.ts:444

string

this


setTitle(title): this

Defined in: zaun/js/index.d.ts:445

string

this


toJSON(): object

Defined in: zaun/js/index.d.ts:411

object

components: ComponentData[]

custom_id: string

title: string

Builder.toJSON