UNPKG

@globalart/nestcord

Version:

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

18 lines (17 loc) 901 B
import { OnApplicationBootstrap, OnModuleInit } from '@nestjs/common'; import { ContextMenusService } from './context-menus'; import { SlashCommandsService } from './slash-commands'; import { CommandsService } from './commands.service'; import { Client } from 'discord.js'; import { NestCordModuleOptions } from '../nestcord-options.interface'; export declare class CommandsModule implements OnModuleInit, OnApplicationBootstrap { private readonly client; private readonly options; private readonly commandsService; private readonly contextMenusService; private readonly slashCommandsService; constructor(client: Client, options: NestCordModuleOptions, commandsService: CommandsService, contextMenusService: ContextMenusService, slashCommandsService: SlashCommandsService); onModuleInit(): Promise<void>; private initializeClient; onApplicationBootstrap(): void; }