create-discord-https 2.0.0 → 2.0.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-discord-https",
3
3
  "description": "Create Discord.https-powered bots with one command.",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "bin": {
6
6
  "create-discord-https": "index.js"
7
7
  },
@@ -80,7 +80,14 @@ export async function tunnelLayer() {
80
80
  }
81
81
  }
82
82
 
83
- export async function commandRegistrarLayer(client: any, guildId: string) {
83
+ /**
84
+ * Registers commands for a Discord client.
85
+ *
86
+ * @param {string} [guildId] - The optional ID of the guild where commands will be registered.
87
+ * If not provided, commands will be registered globally.
88
+ */
89
+
90
+ export async function commandRegistrarLayer(client, guildId) {
84
91
  if (process.env.NODE_ENV !== "production") {
85
92
  const FILENAME = "__dev_layer_cache__";
86
93
  const chalk = (await import("chalk")).default;
@@ -76,7 +76,14 @@ export async function tunnelLayer() {
76
76
  }
77
77
  }
78
78
 
79
- export async function commandRegistrarLayer(client: any, guildId?: string) {
79
+ /**
80
+ * Registers commands for a Discord client.
81
+ *
82
+ * @param {string} [guildId] - The optional ID of the guild where commands will be registered.
83
+ * If not provided, commands will be registered globally.
84
+ */
85
+
86
+ export async function commandRegistrarLayer(client, guildId) {
80
87
  if (process.env.NODE_ENV !== "production") {
81
88
  const FILENAME = "__dev_layer_cache__";
82
89
  const chalk = (await import("chalk")).default;
@@ -3,7 +3,7 @@
3
3
  import { spawn } from "child_process";
4
4
  import chalk from "chalk"; // npm install chalk
5
5
 
6
- import { tunnelLayer } from "./DevLayer";
6
+ import { tunnelLayer } from "./DevLayer.js";
7
7
 
8
8
  await tunnelLayer();
9
9
  console.log(chalk.greenBright("Tunnel spawned and ready!\n\n"));
@@ -76,7 +76,14 @@ export async function tunnelLayer() {
76
76
  }
77
77
  }
78
78
 
79
- export async function commandRegistrarLayer(client: any, guildId?: string) {
79
+ /**
80
+ * Registers commands for a Discord client.
81
+ *
82
+ * @param {string} [guildId] - The optional ID of the guild where commands will be registered.
83
+ * If not provided, commands will be registered globally.
84
+ */
85
+
86
+ export async function commandRegistrarLayer(client, guildId) {
80
87
  if (process.env.NODE_ENV !== "production") {
81
88
  const FILENAME = "__dev_layer_cache__";
82
89
  const chalk = (await import("chalk")).default;
@@ -3,7 +3,7 @@
3
3
  import { spawn } from "child_process";
4
4
  import chalk from "chalk"; // npm install chalk
5
5
 
6
- import { tunnelLayer } from "./DevLayer";
6
+ import { tunnelLayer } from "./DevLayer.js";
7
7
 
8
8
  await tunnelLayer();
9
9
  console.log(chalk.greenBright("Tunnel spawned and ready!\n\n"));