djsify
Version:
A powerful and flexible Discord bot framework for building feature-rich Discord bots with ease. Supports message commands, slash commands, and button interactions.
9 lines (7 loc) • 621 B
text/typescript
import { ButtonInteraction, Client, CommandInteraction, Message, OmitPartialGroupDMChannel } from "discord.js";
import djsClient from "../Client/setup.js";
type TypedClient = Client & { djsClient?: djsClient };
type SlashCommandInteraction = CommandInteraction & { djsClient?: djsClient, client?: TypedClient };
type ButtoncommandInteraction = ButtonInteraction & { djsClient?: djsClient, client?: TypedClient };
type MessageInteraction = OmitPartialGroupDMChannel<Message> & { djsClient?: djsClient, client?: TypedClient };
export type { SlashCommandInteraction, ButtoncommandInteraction, MessageInteraction };