sdhandler
Version:
A discord.js command handler
13 lines (12 loc) • 375 B
TypeScript
import type { SDClient } from "../structures/Client";
import type { ButtonInteraction } from "discord.js";
interface ButtonRunOptions {
client: SDClient;
interaction: ButtonInteraction;
}
declare type ButtonRunFunction = (options: ButtonRunOptions) => any;
export declare type ButtonOptions = {
name: string;
run: ButtonRunFunction;
};
export {};