commandkit 0.1.6-dev.20231207115511 → 0.1.6-dev.20231209102047
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/index.js +9 -2
- package/dist/index.mjs +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -485,14 +485,14 @@ var CommandHandler = class {
|
|
|
485
485
|
if (devOnlyCommands.length && !this.#data.devGuildIds.length) {
|
|
486
486
|
console.log(
|
|
487
487
|
colors_default.yellow(
|
|
488
|
-
'\u2139\uFE0F Warning: You have commands marked as "devOnly" but "devGuildIds"
|
|
488
|
+
'\u2139\uFE0F Warning: You have commands marked as "devOnly", but "devGuildIds" have not been set.'
|
|
489
489
|
)
|
|
490
490
|
);
|
|
491
491
|
}
|
|
492
492
|
if (devOnlyCommands.length && !this.#data.devUserIds.length && !this.#data.devRoleIds.length) {
|
|
493
493
|
console.log(
|
|
494
494
|
colors_default.yellow(
|
|
495
|
-
'\u2139\uFE0F Warning: You have commands marked as "devOnly" but
|
|
495
|
+
'\u2139\uFE0F Warning: You have commands marked as "devOnly", but "devUserIds" or "devRoleIds" have not been set.'
|
|
496
496
|
)
|
|
497
497
|
);
|
|
498
498
|
}
|
|
@@ -569,6 +569,13 @@ var CommandHandler = class {
|
|
|
569
569
|
} else {
|
|
570
570
|
commandObj.category = commandCategory;
|
|
571
571
|
}
|
|
572
|
+
if (commandObj.options?.guildOnly) {
|
|
573
|
+
console.log(
|
|
574
|
+
colors_default.yellow(
|
|
575
|
+
`\u2139\uFE0F Deprecation warning: The command "${commandObj.data.name}" uses "options.guildOnly", which will be deprecated soon. Use "data.dm_permission" instead.`
|
|
576
|
+
)
|
|
577
|
+
);
|
|
578
|
+
}
|
|
572
579
|
this.#data.commands.push(commandObj);
|
|
573
580
|
}
|
|
574
581
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -452,14 +452,14 @@ var CommandHandler = class {
|
|
|
452
452
|
if (devOnlyCommands.length && !this.#data.devGuildIds.length) {
|
|
453
453
|
console.log(
|
|
454
454
|
colors_default.yellow(
|
|
455
|
-
'\u2139\uFE0F Warning: You have commands marked as "devOnly" but "devGuildIds"
|
|
455
|
+
'\u2139\uFE0F Warning: You have commands marked as "devOnly", but "devGuildIds" have not been set.'
|
|
456
456
|
)
|
|
457
457
|
);
|
|
458
458
|
}
|
|
459
459
|
if (devOnlyCommands.length && !this.#data.devUserIds.length && !this.#data.devRoleIds.length) {
|
|
460
460
|
console.log(
|
|
461
461
|
colors_default.yellow(
|
|
462
|
-
'\u2139\uFE0F Warning: You have commands marked as "devOnly" but
|
|
462
|
+
'\u2139\uFE0F Warning: You have commands marked as "devOnly", but "devUserIds" or "devRoleIds" have not been set.'
|
|
463
463
|
)
|
|
464
464
|
);
|
|
465
465
|
}
|
|
@@ -536,6 +536,13 @@ var CommandHandler = class {
|
|
|
536
536
|
} else {
|
|
537
537
|
commandObj.category = commandCategory;
|
|
538
538
|
}
|
|
539
|
+
if (commandObj.options?.guildOnly) {
|
|
540
|
+
console.log(
|
|
541
|
+
colors_default.yellow(
|
|
542
|
+
`\u2139\uFE0F Deprecation warning: The command "${commandObj.data.name}" uses "options.guildOnly", which will be deprecated soon. Use "data.dm_permission" instead.`
|
|
543
|
+
)
|
|
544
|
+
);
|
|
545
|
+
}
|
|
539
546
|
this.#data.commands.push(commandObj);
|
|
540
547
|
}
|
|
541
548
|
}
|
package/package.json
CHANGED