Skip to main content
Module

x/discordeno/mod.ts>DiscordButtonComponent

Discord API library for Deno
Latest
interface DiscordButtonComponent
import { type DiscordButtonComponent } from "https://deno.land/x/discordeno@18.0.1/mod.ts";

Properties

type: MessageComponentTypes.Button

All button components have type 2

label: string

for what the button says (max 80 characters)

optional
custom_id: string

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

style: ButtonStyles

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