Comparing version 3.0.0-dev.1 to 3.0.0-dev.2
@@ -79,5 +79,5 @@ import { CoreHandler, Option } from "./coreHandler"; | ||
* @param loaderOptions Command Loader Options | ||
* @param injectionOptions Injection Options. | ||
* @param handlerFlags Injection Options. | ||
*/ | ||
constructor(client: Client, path: string, readerOptions?: ReaderOptions, loaderOptions?: LoaderOptions, injectionOptions?: HandlerFlags); | ||
constructor(client: Client, path: string, readerOptions?: ReaderOptions, loaderOptions?: LoaderOptions, handlerFlags?: HandlerFlags); | ||
/** | ||
@@ -84,0 +84,0 @@ * Register Slash Commands |
@@ -19,5 +19,5 @@ "use strict"; | ||
* @param loaderOptions Command Loader Options | ||
* @param injectionOptions Injection Options. | ||
* @param handlerFlags Injection Options. | ||
*/ | ||
constructor(client, path, readerOptions, loaderOptions, injectionOptions) { | ||
constructor(client, path, readerOptions, loaderOptions, handlerFlags) { | ||
super(client); | ||
@@ -60,6 +60,6 @@ this.options = { | ||
this.iOptions = { | ||
debugger: (injectionOptions === null || injectionOptions === void 0 ? void 0 : injectionOptions.debugger) || false, | ||
disableLogs: (injectionOptions === null || injectionOptions === void 0 ? void 0 : injectionOptions.disableLogs) || false, | ||
esImports: (injectionOptions === null || injectionOptions === void 0 ? void 0 : injectionOptions.esImports) || false, | ||
esImportsDisableNoExportFound: (injectionOptions === null || injectionOptions === void 0 ? void 0 : injectionOptions.esImportsDisableNoExportFound) || false, | ||
debugger: (handlerFlags === null || handlerFlags === void 0 ? void 0 : handlerFlags.debugger) || false, | ||
disableLogs: (handlerFlags === null || handlerFlags === void 0 ? void 0 : handlerFlags.disableLogs) || false, | ||
esImports: (handlerFlags === null || handlerFlags === void 0 ? void 0 : handlerFlags.esImports) || false, | ||
esImportsDisableNoExportFound: (handlerFlags === null || handlerFlags === void 0 ? void 0 : handlerFlags.esImportsDisableNoExportFound) || false, | ||
}; | ||
@@ -152,3 +152,3 @@ } | ||
if (this.iOptions.debugger) | ||
console.debug(clc.underline.blue("handleCommands() has been called and has started executing.\n")); | ||
console.debug(clc.underline.blue("\nhandleCommands() has been called and has started executing.\n")); | ||
this.client.on("interactionCreate", async (interaction) => { | ||
@@ -221,6 +221,3 @@ var _a, _b; | ||
" " + | ||
clc.bold.magenta(arr | ||
.slice(labeled ? 1 : 0, 2) | ||
.join(" ") + | ||
" " + | ||
clc.bold.magenta(fn.toString().split("{")[0] + | ||
(labeled ? "=> " + result : result))); | ||
@@ -227,0 +224,0 @@ } |
{ | ||
"name": "ic4d", | ||
"version": "3.0.0-dev.1", | ||
"version": "3.0.0-dev.2", | ||
"description": "Discord.js Interaction and Command handler 4 Dummies", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
126699
1542