Skip to main content

DiscordCheckboxComponent

Documentation


Documentation / @discordeno/types / DiscordCheckboxComponent

Interface: DiscordCheckboxComponent

Defined in: discord/components.ts:861

https://docs.discord.com/developers/components/reference#checkbox-structure

Extends

Properties

custom_id

custom_id: string

Defined in: discord/components.ts:864

A dev-defined unique string for the component; 1-100 characters.


default?

optional default?: boolean

Defined in: discord/components.ts:866

Whether the checkbox is selected by default.


id?

optional id?: number

Defined in: discord/components.ts:100

32 bit integer used as an optional identifier for component

Inherited from

DiscordBaseComponent.id


type

type: Checkbox

Defined in: discord/components.ts:862

The type of the component

Overrides

DiscordBaseComponent.type