reciple 5.4.2 → 5.4.3
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
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
@@ -32,7 +55,7 @@ async function getModules(client, folder) {
|
|
|
32
55
|
const commands = [];
|
|
33
56
|
let module_;
|
|
34
57
|
try {
|
|
35
|
-
const reqMod = require(modulePath);
|
|
58
|
+
const reqMod = await Promise.resolve().then(() => __importStar(require(modulePath)));
|
|
36
59
|
module_ = reqMod?.default !== undefined ? reqMod.default : reqMod;
|
|
37
60
|
if (typeof module_ !== 'object')
|
|
38
61
|
throw new Error(`Module ${modulePath} is not an object`);
|
|
@@ -108,7 +108,7 @@ export interface SlashCommandData extends SharedCommandDataProperties, Partial<O
|
|
|
108
108
|
type: CommandBuilderType.SlashCommand;
|
|
109
109
|
nameLocalizations?: LocalizationMap;
|
|
110
110
|
descriptionLocalizations?: LocalizationMap;
|
|
111
|
-
options
|
|
111
|
+
options?: (AnySlashCommandOptionData | AnySlashCommandOptionBuilder)[];
|
|
112
112
|
/**
|
|
113
113
|
* @deprecated This property is deprecated and will be removed in the future.
|
|
114
114
|
*/
|