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.
19 lines (18 loc) • 644 B
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 };