Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/natico/examples/deps.ts>DiscordenoComponent

A powerful and customizable framework for Discordeno
Latest
interface DiscordenoComponent
Re-export
import { type DiscordenoComponent } from "https://deno.land/x/natico@4.0.0-pre.4/examples/deps.ts";

Properties

component type

optional
customId: 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
emoji: { id?: bigint; 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: { label: string; value: string; description?: string; emoji?: { id?: bigint; name?: string; animated?: boolean; }; default: boolean; }[]

The choices! Maximum of 25 items.

optional
placeholder: string

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

optional
minValues: number

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

optional
maxValues: number

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

optional
components: DiscordenoComponent[]

a list of child components