commandkit 0.1.5 → 0.1.6-dev.20231005105852

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/README.md CHANGED
@@ -99,8 +99,11 @@ new CommandKit({
99
99
  // Array of developer role IDs (used for devOnly commands)
100
100
  devRoleIds: ['1234567890', '0987654321'],
101
101
 
102
- // A property that disables CommandKit's built-in validations
102
+ // Disable CommandKit's built-in validations
103
103
  skipBuiltInValidations: true,
104
+
105
+ // Update command registration/reload behaviour to register all commands at once
106
+ bulkRegister: true,
104
107
  });
105
108
 
106
109
  client.login('YOUR_TOKEN_HERE');
package/dist/index.js CHANGED
@@ -809,6 +809,7 @@ var CommandKit = class {
809
809
  const validationHandler = new ValidationHandler({
810
810
  validationsPath: this.#data.validationsPath
811
811
  });
812
+ await validationHandler.init();
812
813
  this.#data.validationHandler = validationHandler;
813
814
  }
814
815
  if (this.#data.commandsPath) {
package/dist/index.mjs CHANGED
@@ -779,6 +779,7 @@ var CommandKit = class {
779
779
  const validationHandler = new ValidationHandler({
780
780
  validationsPath: this.#data.validationsPath
781
781
  });
782
+ await validationHandler.init();
782
783
  this.#data.validationHandler = validationHandler;
783
784
  }
784
785
  if (this.#data.commandsPath) {
package/package.json CHANGED
@@ -1,49 +1,49 @@
1
1
  {
2
- "name": "commandkit",
3
- "description": "Beginner friendly command & event handler for Discord.js",
4
- "version": "0.1.5",
5
- "license": "MIT",
6
- "main": "./dist/index.js",
7
- "module": "./dist/index.mjs",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "require": "./dist/index.js",
12
- "import": "./dist/index.mjs",
13
- "types": "./dist/index.d.ts"
14
- }
15
- },
16
- "scripts": {
17
- "lint": "tsc",
18
- "dev": "tsup --watch",
19
- "build": "tsup",
20
- "deploy": "npm publish",
21
- "deploy-dev": "npm publish --access public --tag dev",
22
- "test": "tsx tests/index.ts",
23
- "test:watch": "tsx watch tests/index.ts"
24
- },
25
- "repository": {
26
- "url": "git+https://github.com/underctrl-io/commandkit.git"
27
- },
28
- "homepage": "https://commandkit.js.org",
29
- "keywords": [
30
- "discord.js",
31
- "command handler",
32
- "event handler"
33
- ],
34
- "dependencies": {
35
- "rfdc": "^1.3.0"
36
- },
37
- "devDependencies": {
38
- "@types/node": "^20.5.9",
39
- "discord.js": "^14.13.0",
40
- "dotenv": "^16.3.1",
41
- "tsconfig": "workspace:*",
42
- "tsup": "^7.2.0",
43
- "tsx": "^3.12.8",
44
- "typescript": "^5.1.6"
45
- },
46
- "peerDependencies": {
47
- "discord.js": "^14"
2
+ "name": "commandkit",
3
+ "description": "Beginner friendly command & event handler for Discord.js",
4
+ "version": "0.1.6-dev.20231005105852",
5
+ "license": "MIT",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "require": "./dist/index.js",
12
+ "import": "./dist/index.mjs",
13
+ "types": "./dist/index.d.ts"
48
14
  }
49
- }
15
+ },
16
+ "scripts": {
17
+ "lint": "tsc",
18
+ "dev": "tsup --watch",
19
+ "build": "tsup",
20
+ "deploy": "npm publish",
21
+ "deploy-dev": "npm publish --access public --tag dev",
22
+ "test": "tsx tests/index.ts",
23
+ "test:watch": "tsx watch tests/index.ts"
24
+ },
25
+ "repository": {
26
+ "url": "git+https://github.com/underctrl-io/commandkit.git"
27
+ },
28
+ "homepage": "https://commandkit.js.org",
29
+ "keywords": [
30
+ "discord.js",
31
+ "command handler",
32
+ "event handler"
33
+ ],
34
+ "dependencies": {
35
+ "rfdc": "^1.3.0"
36
+ },
37
+ "devDependencies": {
38
+ "@types/node": "^20.5.9",
39
+ "discord.js": "^14.13.0",
40
+ "dotenv": "^16.3.1",
41
+ "tsconfig": "workspace:*",
42
+ "tsup": "^7.2.0",
43
+ "tsx": "^3.12.8",
44
+ "typescript": "^5.1.6"
45
+ },
46
+ "peerDependencies": {
47
+ "discord.js": "^14"
48
+ }
49
+ }