UNPKG

@globalart/nestcord

Version:

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

27 lines (26 loc) 663 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; } getAliases() { var _a; return (_a = this.meta.aliases) !== null && _a !== void 0 ? _a : []; } isTextCommand() { return true; } toJSON() { return this.meta; } } exports.TextCommandDiscovery = TextCommandDiscovery;