File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import rootSettingsJson from " ../../settings.json" with { type : " json" }
1+ import rootSettingsJson from ' ../../settings.json' with { type : ' json' } ;
22
3- export { rootSettingsJson }
3+ export { rootSettingsJson } ;
Original file line number Diff line number Diff line change 1- import * as nodeUrl from " node:url" ;
2- import * as nodePath from " node:path" ;
1+ import * as nodeUrl from ' node:url' ;
2+ import * as nodePath from ' node:path' ;
33
44function getDirname ( moduleAbsoluteFileUrl ) {
55 const fileName = nodeUrl . fileURLToPath ( moduleAbsoluteFileUrl ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async function loadCommandsFromPath(directoryPath) {
1717 await Promise . all (
1818 commandFileNames . map ( async ( fileName ) => {
1919 if ( ! fileName . endsWith ( '.js' ) ) {
20- return
20+ return ;
2121 }
2222 const filePath = nodePath . join ( directoryPath , fileName ) ;
2323 const fileUrlHref = nodeUrl . pathToFileURL ( filePath ) . href ;
@@ -31,7 +31,7 @@ async function loadCommandsFromPath(directoryPath) {
3131 }
3232 } ) ,
3333 ) ;
34- console . log ( " LOAD DONE: jsonCommands" )
34+ console . log ( ' LOAD DONE: jsonCommands' ) ;
3535 return jsonCommands ;
3636}
3737
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export async function getLocalesMap() {
3131 }
3232 } ) ,
3333 ) ;
34- console . log ( `LOAD DONE: localesProps: ${ folderName } ` )
34+ console . log ( `LOAD DONE: localesProps: ${ folderName } ` ) ;
3535 localesMap . set ( folderName , localeProps ) ;
3636 }
3737 return localesMap ;
Original file line number Diff line number Diff line change 1- import { REST } from " discord.js"
2- import { rootSettingsJson } from " ./configHandler.js"
1+ import { REST } from ' discord.js' ;
2+ import { rootSettingsJson } from ' ./configHandler.js' ;
33
4- export const rest = new REST ( { version : "10" } ) . setToken ( rootSettingsJson . token ) ;
4+ export const rest = new REST ( { version : '10' } ) . setToken ( rootSettingsJson . token ) ;
Original file line number Diff line number Diff line change 1- import { Routes } from " discord.js" ;
2- import { rootSettingsJson } from " ./configHandler.js"
1+ import { Routes } from ' discord.js' ;
2+ import { rootSettingsJson } from ' ./configHandler.js' ;
33
44export const applicationGlobalCommandsRoute = Routes . applicationCommands ( rootSettingsJson . applicationId ) ;
You can’t perform that action at this time.
0 commit comments