Latest
interface DiscordComponent
import { type DiscordComponent } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/deps.ts";

Properties

component type

optional
custom_id: string

a developer-defined identifier for the component, max 100 characters

optional
disabled: boolean

whether the component is disabled, default false

optional
style: ButtonStyles | TextStyles

For different styles/colors of the buttons

optional
label: string

text that appears on the button (max 80 characters)

optional
value: string

the dev-define value of the option, max 100 characters for select or 4000 for input.

optional
emoji: { id?: string; name?: string; animated?: boolean; }

Emoji object that includes fields of name, id, and animated supporting unicode and custom emojis.

optional
url: string

optional url for link-style buttons that can navigate a user to the web. Only type 5 Link buttons can have a url

optional
options: DiscordSelectOption[]

The choices! Maximum of 25 items.

optional
placeholder: string

A custom placeholder text if nothing is selected. Maximum 150 characters.

optional
min_values: number

The minimum number of items that must be selected. Default 1. Between 1-25.

optional
max_values: number

The maximum number of items that can be selected. Default 1. Between 1-25.

optional
min_length: number

The minimum input length for a text input. Between 0-4000.

optional
max_length: number

The maximum input length for a text input. Between 1-4000.

optional
components: DiscordComponent[]

a list of child components

optional
required: boolean

whether this component is required to be filled, default true

import DiscordComponent
import { DiscordComponent } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/deps.ts";