From 45e016e9c3fa5f92e80aa7accef6de57e68310c9 Mon Sep 17 00:00:00 2001 From: Nico Jensen Date: Mon, 31 Jan 2022 17:54:45 +0100 Subject: [PATCH] einheitliche benennung --- src/deploy-commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/deploy-commands.js b/src/deploy-commands.js index 0552295..ee9415d 100644 --- a/src/deploy-commands.js +++ b/src/deploy-commands.js @@ -4,10 +4,10 @@ const {REST} = require("@discordjs/rest") const {Routes} = require("discord-api-types/v9") const commands = [] -const CommandFiles = fs.readdirSync("./src/commands").filter(file => file.endsWith(".js")) +const commandFiles = fs.readdirSync("./src/commands").filter(file => file.endsWith(".js")) -CommandFiles.forEach(CommandFile => { - const command = require(`./commands/${CommandFile}`) +commandFiles.forEach(commandFile => { + const command = require(`./commands/${commandFile}`) commands.push(command.data.toJSON()) })