Skip to main content
Module

x/discordeno/mod.ts>ButtonComponent

Discord API library for Deno
Go to Latest
interface ButtonComponent
import { type ButtonComponent } from "https://deno.land/x/discordeno@13.0.0-rc45/mod.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?: 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
disabled: boolean

Whether or not this button is disabled