UNPKG

@globalart/nestcord

Version:

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

23 lines (22 loc) 545 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextCommandDiscovery = void 0; const context_1 = require("../context"); /** * Represents a text command discovery. */ class TextCommandDiscovery extends context_1.NestCordBaseDiscovery { getName() { return this.meta.name; } getDescription() { return this.meta.description; } isTextCommand() { return true; } toJSON() { return this.meta; } } exports.TextCommandDiscovery = TextCommandDiscovery;