UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

14 lines (13 loc) 720 B
import { type APIButtonComponentWithCustomId, type APIButtonComponentWithSKUId, type APIButtonComponentWithURL, ButtonStyle } from "discord-api-types/v10"; interface ButtonWithCustomId extends Omit<APIButtonComponentWithCustomId, "type" | "style"> { style?: Exclude<keyof typeof ButtonStyle, "Link" | "Premium">; } /** * Creates a button component * * Button object */ export declare function Button(config: ButtonWithCustomId): APIButtonComponentWithCustomId; export declare function Button(config: Omit<APIButtonComponentWithSKUId, "type" | "style">): APIButtonComponentWithSKUId; export declare function Button(config: Omit<APIButtonComponentWithURL, "type" | "style">): APIButtonComponentWithURL; export {};