UNPKG

fast-discord-js

Version:

FastDiscordJS is an unofficial extension of the 'discord.js' library. Our extension aims to simplify the development of Discord bots, promoting cleaner code and easier maintenance.

14 lines (13 loc) 498 B
import Discord, { ButtonBuilder, Interaction } from 'discord.js'; import { Client } from '../class'; type ButtonOptions = { customId: string; style?: Discord.ButtonStyle; label: string; disabled?: boolean; emoji?: string; url?: string; onClick?: (client: Client, interaction: Interaction, ...args: string[]) => void; }; declare const CreateButton: ({ customId, style, label, disabled, emoji, url, onClick }: ButtonOptions) => ButtonBuilder; export default CreateButton;