reciple 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/reciple/modules.js +1 -2
- package/package.json +1 -1
package/bin/reciple/modules.js
CHANGED
|
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.loadModules = void 0;
|
|
16
16
|
const fs_1 = require("fs");
|
|
17
|
-
const MessageCommandBuilder_1 = require("./classes/builders/MessageCommandBuilder");
|
|
18
17
|
const path_1 = __importDefault(require("path"));
|
|
19
18
|
function loadModules(client) {
|
|
20
19
|
var _a;
|
|
@@ -52,7 +51,7 @@ function loadModules(client) {
|
|
|
52
51
|
logger.error(`A message command name is not defined in ${script}`);
|
|
53
52
|
return false;
|
|
54
53
|
}
|
|
55
|
-
if (c
|
|
54
|
+
if (c.type === 'MESSAGE_COMMAND' && c.options.length && c.options.some(o => !o.name)) {
|
|
56
55
|
logger.error(`A message command option name is not defined in ${script}`);
|
|
57
56
|
return false;
|
|
58
57
|
}
|