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

x/natico/examples/deps.ts>ButtonComponent

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

Properties

type: MessageComponentTypes.Button

All button components have type 2

label: string

for what the button says (max 80 characters)

optional
customId: string

a dev-defined unique string sent on click (max 100 characters). type 5 Link buttons can not have a custom_id

For different styles/colors of the buttons

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
disabled: boolean

Whether or not this button is disabled