commandkit 0.1.6-dev.20231207113539 → 0.1.6-dev.20231209101128

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 CHANGED
@@ -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
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "commandkit",
3
3
  "description": "Beginner friendly command & event handler for Discord.js",
4
- "version": "0.1.6-dev.20231207113539",
4
+ "version": "0.1.6-dev.20231209101128",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",