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 +1 -1
- package/templates/cloudflare-ts/src/{DevLayer.ts → DevLayer.js} +8 -1
- package/templates/node-ts/src/{DevLayer.ts → DevLayer.js} +8 -1
- package/templates/vercel/src/spawner.js +1 -1
- package/templates/vercel-ts/src/{DevLayer.ts → DevLayer.js} +8 -1
- package/templates/vercel-ts/src/spawner.js +1 -1
package/package.json
CHANGED
|
@@ -80,7 +80,14 @@ export async function tunnelLayer() {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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"));
|