diskernel 0.1.0 → 0.1.2
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/dist/core/command.d.ts
CHANGED
|
@@ -10,13 +10,7 @@ export declare class Command extends command {
|
|
|
10
10
|
private static buildCommandOptions;
|
|
11
11
|
private static initializeCooldown;
|
|
12
12
|
private static buildCommands;
|
|
13
|
-
private static buildSubCommandFromNameAndParent;
|
|
14
|
-
private static buildCommandFromName;
|
|
15
13
|
private static registerWithGuildID;
|
|
16
|
-
static unregisterFromName(name: string): Promise<boolean>;
|
|
17
|
-
static unregisterFromNameAndGuildID(name: string, guildID: string): Promise<boolean>;
|
|
18
|
-
static registerFromName(name: string): Promise<boolean>;
|
|
19
|
-
static registerFromNameAndGuildID(name: string, guildID: string): Promise<boolean>;
|
|
20
14
|
private static registerCommands;
|
|
21
15
|
private static isCooldownPassed;
|
|
22
16
|
private static isPrivilegeCheckPassed;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/core/command.ts"],"names":[],"mappings":"AAqBA,OAAO,EAML,OAAO,IAAI,OAAO,EAGnB,MAAM,QAAQ,CAAC;AAIhB,qBAAa,OAAQ,SAAQ,OAAO;IAClC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAS;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAqB;IAC5C,OAAO,CAAC,MAAM,CAAC,OAAO,CAA0D;IAChF,OAAO,CAAC,MAAM,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/core/command.ts"],"names":[],"mappings":"AAqBA,OAAO,EAML,OAAO,IAAI,OAAO,EAGnB,MAAM,QAAQ,CAAC;AAIhB,qBAAa,OAAQ,SAAQ,OAAO;IAClC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAS;IAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAqB;IAC5C,OAAO,CAAC,MAAM,CAAC,OAAO,CAA0D;IAChF,OAAO,CAAC,MAAM,CAAC,WAAW,CAIjB;IACT,OAAO,CAAC,MAAM,CAAC,QAAQ,CAGnB;WAEgB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;mBAiC1B,kBAAkB;IAsGvC,OAAO,CAAC,MAAM,CAAC,mBAAmB;IA0DlC,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAcjC,OAAO,CAAC,MAAM,CAAC,aAAa;mBAgEP,mBAAmB;mBAqBnB,gBAAgB;IAoCrC,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAkC/B,OAAO,CAAC,MAAM,CAAC,sBAAsB;IA4BrC,OAAO,CAAC,MAAM,CAAC,gBAAgB;mBA4BV,oBAAoB;mBA4BpB,qBAAqB;mBA0BrB,eAAe;mBA4Bf,cAAc;CAmHpC"}
|
package/dist/core/command.js
CHANGED
|
@@ -38,7 +38,7 @@ export class Command extends command {
|
|
|
38
38
|
}
|
|
39
39
|
})();
|
|
40
40
|
if (commands)
|
|
41
|
-
await this.registerWithGuildID(guild.id, commands);
|
|
41
|
+
await this.registerWithGuildID(guild.id, commands.guild);
|
|
42
42
|
Logger.info('✅ Register commands finished successfully.');
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -181,6 +181,7 @@ export class Command extends command {
|
|
|
181
181
|
}
|
|
182
182
|
static buildCommands() {
|
|
183
183
|
const commands = [];
|
|
184
|
+
const globalCommands = [];
|
|
184
185
|
for (const command of this.commands) {
|
|
185
186
|
if (command.type === "slash" && !command.parent) {
|
|
186
187
|
const slashCommand = new SlashCommandBuilder()
|
|
@@ -191,7 +192,12 @@ export class Command extends command {
|
|
|
191
192
|
this.buildCommandOptions(option, slashCommand);
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
|
-
|
|
195
|
+
if (command.global) {
|
|
196
|
+
globalCommands.push(slashCommand);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
commands.push(slashCommand);
|
|
200
|
+
}
|
|
195
201
|
}
|
|
196
202
|
else if (command.type === "slash" && command.parent) {
|
|
197
203
|
const subCommand = new SlashCommandSubcommandBuilder()
|
|
@@ -202,7 +208,7 @@ export class Command extends command {
|
|
|
202
208
|
this.buildCommandOptions(option, subCommand);
|
|
203
209
|
}
|
|
204
210
|
}
|
|
205
|
-
this.subCommands.push({ parent: command.parent, command: subCommand });
|
|
211
|
+
this.subCommands.push({ parent: command.parent, command: subCommand, isGlobal: command.global });
|
|
206
212
|
}
|
|
207
213
|
else if (command.type === "userContextMenu" || command.type === "messageContextMenu") {
|
|
208
214
|
const contextMenuCommand = new ContextMenuCommandBuilder()
|
|
@@ -210,84 +216,27 @@ export class Command extends command {
|
|
|
210
216
|
.setType(command.type === "userContextMenu"
|
|
211
217
|
? ApplicationCommandType.User
|
|
212
218
|
: ApplicationCommandType.Message);
|
|
213
|
-
|
|
219
|
+
if (command.global) {
|
|
220
|
+
globalCommands.push(contextMenuCommand);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
commands.push(contextMenuCommand);
|
|
224
|
+
}
|
|
214
225
|
}
|
|
215
226
|
if (command.isCooldownEnabled) {
|
|
216
227
|
this.initializeCooldown(command.name, command.globalCooldownTime, command.userCooldownTime);
|
|
217
228
|
}
|
|
218
|
-
this.subCommands.forEach((v) => {
|
|
219
|
-
const slashCommand = commands.find((c) => c.name === v.parent);
|
|
220
|
-
if (slashCommand instanceof SlashCommandBuilder) {
|
|
221
|
-
slashCommand.addSubcommand(v.command);
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
229
|
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
static buildSubCommandFromNameAndParent(name, parent) {
|
|
230
|
-
const parentCommand = this.commands.find((c) => c.name === parent);
|
|
231
|
-
if (!parentCommand || !parentCommand.hasParent())
|
|
232
|
-
return false;
|
|
233
|
-
const command = this.commands.find((c) => c.name === name && c.parent === parent);
|
|
234
|
-
if (!command)
|
|
235
|
-
return false;
|
|
236
|
-
const subCommand = new SlashCommandSubcommandBuilder()
|
|
237
|
-
.setName(command.name)
|
|
238
|
-
.setDescription(command.hasDescription() ? command.description : "No description provided.");
|
|
239
|
-
if (command.hasOptions()) {
|
|
240
|
-
for (const option of command.option) {
|
|
241
|
-
this.buildCommandOptions(option, subCommand);
|
|
230
|
+
this.subCommands.forEach((v) => {
|
|
231
|
+
const slashCommand = commands.find((c) => c.name === v.parent) ?? globalCommands.find(c => c.name === v.parent) ?? undefined;
|
|
232
|
+
if (slashCommand instanceof SlashCommandBuilder) {
|
|
233
|
+
slashCommand.addSubcommand(v.command);
|
|
242
234
|
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
return true;
|
|
249
|
-
}
|
|
250
|
-
static buildCommandFromName(name) {
|
|
251
|
-
const command = this.commands.find((c) => c.name === name);
|
|
252
|
-
if (!command)
|
|
253
|
-
return undefined;
|
|
254
|
-
if (command.isCooldownEnabled) {
|
|
255
|
-
this.initializeCooldown(command.name, command.globalCooldownTime, command.userCooldownTime);
|
|
256
|
-
}
|
|
257
|
-
if (command.parent && command.type === "slash") {
|
|
258
|
-
const parent = this.buildCommandFromName(command.parent);
|
|
259
|
-
if (!(parent instanceof SlashCommandBuilder))
|
|
260
|
-
return undefined;
|
|
261
|
-
if (this.buildSubCommandFromNameAndParent(name, parent.name)) {
|
|
262
|
-
this.subCommands
|
|
263
|
-
.filter((c) => c.parent === parent.name)
|
|
264
|
-
.forEach((c) => {
|
|
265
|
-
parent.addSubcommand(c.command);
|
|
266
|
-
});
|
|
267
|
-
return parent;
|
|
268
|
-
}
|
|
269
|
-
else
|
|
270
|
-
return undefined;
|
|
271
|
-
}
|
|
272
|
-
else if (command.type === "slash") {
|
|
273
|
-
const slashCommand = new SlashCommandBuilder()
|
|
274
|
-
.setName(command.name)
|
|
275
|
-
.setDescription(command.description);
|
|
276
|
-
if (command.option) {
|
|
277
|
-
for (const option of command.option) {
|
|
278
|
-
this.buildCommandOptions(option, slashCommand);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
return slashCommand;
|
|
282
|
-
}
|
|
283
|
-
else if (command.type === "userContextMenu" || command.type === "messageContextMenu") {
|
|
284
|
-
const contextMenuCommand = new ContextMenuCommandBuilder()
|
|
285
|
-
.setName(command.name)
|
|
286
|
-
.setType(command.type === "userContextMenu"
|
|
287
|
-
? ApplicationCommandType.User
|
|
288
|
-
: ApplicationCommandType.Message);
|
|
289
|
-
return contextMenuCommand;
|
|
290
|
-
}
|
|
235
|
+
});
|
|
236
|
+
return {
|
|
237
|
+
guild: commands.map((c) => c.toJSON()),
|
|
238
|
+
global: globalCommands.map(c => c.toJSON())
|
|
239
|
+
};
|
|
291
240
|
}
|
|
292
241
|
static async registerWithGuildID(guildID, commands) {
|
|
293
242
|
const guild = this.client.guilds.cache.get(guildID);
|
|
@@ -302,68 +251,6 @@ export class Command extends command {
|
|
|
302
251
|
Logger.debug(`✅ Registered ${commands.length} commands for guild ${guildID}.`);
|
|
303
252
|
return true;
|
|
304
253
|
}
|
|
305
|
-
static async unregisterFromName(name) {
|
|
306
|
-
const command = (await this.client.application?.commands.fetch())?.find((c) => c.name === name);
|
|
307
|
-
if (!command) {
|
|
308
|
-
Logger.warn(`⚠ Command with name ${name} not found.`);
|
|
309
|
-
return false;
|
|
310
|
-
}
|
|
311
|
-
const guilds = this.client.guilds.cache.values();
|
|
312
|
-
for (const guild of guilds) {
|
|
313
|
-
await guild.commands.delete(command);
|
|
314
|
-
if (guilds.toArray().length < 10) {
|
|
315
|
-
setTimeout(() => { }, 1000);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
return true;
|
|
319
|
-
}
|
|
320
|
-
static async unregisterFromNameAndGuildID(name, guildID) {
|
|
321
|
-
const Command = (await this.client.guilds.cache.get(guildID)?.commands.fetch())?.find((c) => c.name === name);
|
|
322
|
-
if (!Command) {
|
|
323
|
-
Logger.warn(`⚠ Command with name ${name} not found in guild ${guildID}.`);
|
|
324
|
-
return false;
|
|
325
|
-
}
|
|
326
|
-
await this.client.guilds.cache.get(guildID)?.commands.delete(Command);
|
|
327
|
-
return true;
|
|
328
|
-
}
|
|
329
|
-
static async registerFromName(name) {
|
|
330
|
-
const commands = await this.client.application?.commands.fetch();
|
|
331
|
-
if (commands?.find((c) => c.name === name)) {
|
|
332
|
-
Logger.warn(`⚠ Command with name ${name} already exists.`);
|
|
333
|
-
return false;
|
|
334
|
-
}
|
|
335
|
-
const command = this.buildCommandFromName(name)?.toJSON();
|
|
336
|
-
if (!command) {
|
|
337
|
-
Logger.warn(`⚠ Command with name ${name} is invalid.`);
|
|
338
|
-
return false;
|
|
339
|
-
}
|
|
340
|
-
const guilds = this.client.guilds.cache.values();
|
|
341
|
-
for (const guild of guilds) {
|
|
342
|
-
await guild.commands.create(command);
|
|
343
|
-
if (guilds.toArray().length < 10) {
|
|
344
|
-
setTimeout(() => { }, 1000);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
return true;
|
|
348
|
-
}
|
|
349
|
-
static async registerFromNameAndGuildID(name, guildID) {
|
|
350
|
-
if ((await this.client.application?.commands.fetch())?.find((c) => c.name === name)) {
|
|
351
|
-
Logger.warn(`⚠ Command with name ${name} already exists in GuildID ${guildID}.`);
|
|
352
|
-
return false;
|
|
353
|
-
}
|
|
354
|
-
const command = this.buildCommandFromName(name)?.toJSON();
|
|
355
|
-
if (!command) {
|
|
356
|
-
Logger.warn(`⚠ Command with name ${name} is invalid.`);
|
|
357
|
-
return false;
|
|
358
|
-
}
|
|
359
|
-
const guild = this.client.guilds.cache.get(guildID);
|
|
360
|
-
if (!guild) {
|
|
361
|
-
Logger.warn(`⚠ Guild with ID ${guildID} not found.`);
|
|
362
|
-
return false;
|
|
363
|
-
}
|
|
364
|
-
await guild.commands.create(command);
|
|
365
|
-
return true;
|
|
366
|
-
}
|
|
367
254
|
static async registerCommands() {
|
|
368
255
|
if (!(await this.loadCommandFromDir(path.resolve(process.cwd(), "dist", "commands")))) {
|
|
369
256
|
Logger.warn(`❌️ Failed to load commands from ${process.cwd()}/dist/commands`);
|
|
@@ -384,12 +271,15 @@ export class Command extends command {
|
|
|
384
271
|
return false;
|
|
385
272
|
const guilds = this.client.guilds.cache.values();
|
|
386
273
|
for (const guild of guilds) {
|
|
387
|
-
await this.registerWithGuildID(guild.id, commands);
|
|
274
|
+
await this.registerWithGuildID(guild.id, commands.guild);
|
|
388
275
|
if (guilds.toArray().length < 10) {
|
|
389
276
|
setTimeout(() => { }, 1000);
|
|
390
277
|
}
|
|
391
278
|
}
|
|
392
|
-
|
|
279
|
+
if (commands.global.length > 0) {
|
|
280
|
+
await this.client?.application?.commands.set(commands.global);
|
|
281
|
+
}
|
|
282
|
+
Logger.info(`✅️ Registered ${commands.guild.length} guild commands and ${commands.global.length} global command successfully.`);
|
|
393
283
|
return true;
|
|
394
284
|
}
|
|
395
285
|
static isCooldownPassed(name, userid) {
|
package/dist/types/command.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export interface OptionT {
|
|
|
18
18
|
}
|
|
19
19
|
export declare abstract class BaseInteraction<T extends InteractionKind> {
|
|
20
20
|
readonly type: T;
|
|
21
|
+
abstract global: boolean;
|
|
21
22
|
abstract isAdminOnly?: boolean;
|
|
22
23
|
abstract isDevOnly?: boolean;
|
|
23
24
|
abstract isCooldownEnabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/types/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,uBAAuB,EACvB,2BAA2B,EAC3B,oCAAoC,EACpC,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAC3B,iCAAiC,EACpC,MAAM,YAAY,CAAC;AAEpB,KAAK,eAAe,GAAG,OAAO,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC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I,CAAC;CAC5F;AAED,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,OAAO,GAAG,SAAS,EAAE,CAAC,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,IAAI,CAAC,SAAS,OAAO,GACvH,aAAa,GACb,CAAC,SAAS,MAAM,GAChB,mBAAmB,GACnB,CAAC,SAAS,SAAS,GACnB,sBAAsB,GACtB,KAAK,CAAC;AAEZ,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,QAAQ,GAAG,YAAY,GAAG,OAAO,IAAI,CAAC,SAAS,QAAQ,GAC/E,aAAa,GACb,CAAC,SAAS,YAAY,GACtB,iBAAiB,GACjB,CAAC,SAAS,OAAO,GACjB,YAAY,GACZ,KAAK,CAAC;AAEZ,MAAM,MAAM,WAAW,GACjB,aAAa,GACb,mBAAmB,GACnB,sBAAsB,CAAC;AAE7B,MAAM,MAAM,UAAU,GAChB,aAAa,GACb,iBAAiB,GACjB,YAAY,CAAC;AAEnB,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "diskernel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"build": "tsc",
|
|
62
62
|
"format": "prettier --write .",
|
|
63
63
|
"lint": "eslint . --ext .ts",
|
|
64
|
-
"clear": "rimraf ./dist"
|
|
65
|
-
"prepublish": "pnpm run clear && pnpm run build"
|
|
64
|
+
"clear": "rimraf ./dist"
|
|
66
65
|
}
|
|
67
66
|
}
|