13.2.7 possible duplicate command fix

This commit is contained in:
SowinskiBraeden committed 2023-01-28 16:48:44 -08:00
1 parent dc5d522738
commit f1853dd3bb
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@ const { REST } = require('@discordjs/rest');
module.exports = {
// Register guild commands
RegisterGuildCommands: async function(client, guild) {
const commands = [];
let commands = [];
const commandFiles = fs.readdirSync(path.join(__dirname, "..", "commands")).filter(file => file.endsWith('.js'));
// Place your client and guild ids here
@@ -40,7 +40,7 @@ module.exports = {
// Register global commands
RegisterGlobalCommands: async function(client) {
const commands = [];
let commands = [];
const commandFiles = fs.readdirSync(path.join(__dirname, "..", "commands")).filter(file => file.endsWith('.js'));
// Place your client and guild ids here