Interface ButtonInterface

interface ButtonInterface {
    custom_id?: string;
    disabled?: boolean;
    emoji?: Partial<EmojiInterface>;
    label?: string;
    style: number;
    type: number;
    url?: string;
}

Hierarchy (view full)

Implemented by

Properties

custom_id?: string

custom_id Developer-defined identifier for the button; max 100 characters

Returns

disabled?: boolean

disabled Whether the button is disabled (defaults to false)

Returns

emoji?: Partial<EmojiInterface>

emoji name, id, and animated

Returns

label?: string

label Text that appears on the button; max 80 characters

Returns

style: number

style A button style

Returns

type: number

type 2 for a button

Returns

url?: string

url URL for link-style buttons

Returns

Generated using TypeDoc