Comparing version 5.6.0-dev.1629210360.72ebdd9 to 5.6.0-dev.1629219680.82b2b2e
@@ -10,2 +10,3 @@ import { Message } from "discord.js"; | ||
constructor(prefix: string, name: string, argString: string, message: Message, info: DSimpleCommand); | ||
getRelatedCommands(): DSimpleCommand[]; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SimpleCommandMessage = void 0; | ||
const __1 = require(".."); | ||
class SimpleCommandMessage { | ||
@@ -12,4 +13,8 @@ constructor(prefix, name, argString, message, info) { | ||
} | ||
getRelatedCommands() { | ||
const commandName = this.info.name.split(" ")[0]; | ||
return __1.MetadataStorage.instance.simpleCommands.filter((cmd) => cmd.name.startsWith(commandName) && cmd.name !== this.info.name); | ||
} | ||
} | ||
exports.SimpleCommandMessage = SimpleCommandMessage; | ||
//# sourceMappingURL=SimpleCommandMessage.js.map |
{ | ||
"name": "discordx", | ||
"version": "5.6.0-dev.1629210360.72ebdd9", | ||
"version": "5.6.0-dev.1629219680.82b2b2e", | ||
"description": "Create your discord bot by using TypeScript and decorators!", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
226737
3590