File tree Expand file tree Collapse file tree 6 files changed +27
-6
lines changed Expand file tree Collapse file tree 6 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " create-discord-https" ,
33 "description" : " Create Discord.https-powered bots with one command." ,
4- "version" : " 2.0.0 " ,
4+ "version" : " 2.0.1 " ,
55 "bin" : {
66 "create-discord-https" : " index.js"
77 },
Original file line number Diff line number Diff line change @@ -80,7 +80,14 @@ export async function tunnelLayer() {
8080 }
8181}
8282
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 ) {
8491 if ( process . env . NODE_ENV !== "production" ) {
8592 const FILENAME = "__dev_layer_cache__" ;
8693 const chalk = ( await import ( "chalk" ) ) . default ;
Original file line number Diff line number Diff line change @@ -76,7 +76,14 @@ export async function tunnelLayer() {
7676 }
7777}
7878
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 ) {
8087 if ( process . env . NODE_ENV !== "production" ) {
8188 const FILENAME = "__dev_layer_cache__" ;
8289 const chalk = ( await import ( "chalk" ) ) . default ;
Original file line number Diff line number Diff line change @@ -76,7 +76,14 @@ export async function tunnelLayer() {
7676 }
7777}
7878
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 ) {
8087 if ( process . env . NODE_ENV !== "production" ) {
8188 const FILENAME = "__dev_layer_cache__" ;
8289 const chalk = ( await import ( "chalk" ) ) . default ;
Original file line number Diff line number Diff line change 33import { spawn } from "child_process" ;
44import chalk from "chalk" ; // npm install chalk
55
6- import { tunnelLayer } from "./DevLayer" ;
6+ import { tunnelLayer } from "./DevLayer.js " ;
77
88await tunnelLayer ( ) ;
99console . log ( chalk . greenBright ( "Tunnel spawned and ready!\n\n" ) ) ;
Original file line number Diff line number Diff line change 33import { spawn } from "child_process" ;
44import chalk from "chalk" ; // npm install chalk
55
6- import { tunnelLayer } from "./DevLayer" ;
6+ import { tunnelLayer } from "./DevLayer.js " ;
77
88await tunnelLayer ( ) ;
99console . log ( chalk . greenBright ( "Tunnel spawned and ready!\n\n" ) ) ;
You can’t perform that action at this time.
0 commit comments