Skip to content

CreateAttachmentOption

Defined in: packages/builders/src/commands.ts:324

Builds an attachment command option.

new CreateAttachmentOption(): CreateAttachmentOption

Defined in: packages/builders/src/commands.ts:326

Creates an attachment option.

CreateAttachmentOption

CreateCommandOption.constructor

setAutocomplete(enabled?): this

Defined in: packages/builders/src/commands.ts:179

Sets autocomplete; options with choices cannot use it.

boolean = true

this

CreateCommandOption.setAutocomplete


setDescription(description): this

Defined in: packages/builders/src/commands.ts:168

Sets the option description.

string

this

CreateCommandOption.setDescription


setName(name): this

Defined in: packages/builders/src/commands.ts:162

Sets the option name.

string

this

CreateCommandOption.setName


setRequired(required?): this

Defined in: packages/builders/src/commands.ts:174

Makes the option required or optional.

boolean = true

this

CreateCommandOption.setRequired


toJSON(): Record<string, unknown>

Defined in: packages/builders/src/commands.ts:190

Serializes the option payload.

Record<string, unknown>

CreateCommandOption.toJSON