djs-builder 0.4.81 → 0.4.82

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.
@@ -9,6 +9,21 @@ export const aliases = new Collection<string, string>();
9
9
  export const commandNames = new Set<string>();
10
10
 
11
11
  export async function readCommands(client: any, prefix: { path: string }): Promise<void> {
12
+
13
+ console.log('Before clearing:');
14
+ console.log('Commands:', commands.size);
15
+ console.log('Aliases:', aliases.size);
16
+ console.log('Command names:', commandNames.size);
17
+
18
+ commands.clear();
19
+ aliases.clear();
20
+ commandNames.clear();
21
+
22
+ console.log('After clearing:');
23
+ console.log('Commands:', commands.size);
24
+ console.log('Aliases:', aliases.size);
25
+ console.log('Command names:', commandNames.size);
26
+
12
27
  const commandDetails: Array<{ name: string; usage: string | undefined; description: string | undefined; aliases: string[] | undefined; cooldown: number | undefined; developer: boolean | undefined; owner: boolean | undefined }> = [];
13
28
 
14
29
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djs-builder",
3
- "version": "0.4.81",
3
+ "version": "0.4.82",
4
4
  "description": "Discord.js bot builder. Supports Ts and Js.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",