UNPKG

discord-module-loader

Version:

A package that lets you load events and commands easily and fast.

20 lines (19 loc) 749 B
import BaseClass from "./BaseClass"; import type { ApplicationCommandPermissions, Awaitable, Snowflake, Interaction, ApplicationCommandData } from "discord.js"; export default class DiscordCommand extends BaseClass { guildId?: Snowflake; command: ApplicationCommandData; channelAllowlist?: Snowflake[]; channelDenylist?: Snowflake[]; cooldown?: number; execute: (interaction: Interaction) => Awaitable<any>; constructor(options: CommandOptions); } export interface CommandOptions { command: ApplicationCommandData; permissions?: ApplicationCommandPermissions[]; channelAllowlist?: Snowflake[]; channelDenylist?: Snowflake[]; cooldown?: number; execute(interaction: Interaction): Awaitable<any>; }