UNPKG

@globalart/nestcord

Version:

A module for creating Discord bots using NestJS, based on Discord.js

18 lines (17 loc) 672 B
import { SlashCommandDiscovery } from './slash-command.discovery'; import { Collection } from 'discord.js'; import { Reflector } from '@nestjs/core'; /** * Represents a service that manages slash commands. */ export declare class SlashCommandsService { private readonly reflector; private readonly logger; readonly cache: Collection<string, SlashCommandDiscovery>; constructor(reflector: Reflector); add(command: SlashCommandDiscovery): void; update(command: SlashCommandDiscovery): void; get(commandName: string): SlashCommandDiscovery; remove(commandName: string): boolean; addSubCommand(subCommand: SlashCommandDiscovery): void; }