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

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "quarksbot", "name": "quarksbot",
"version": "13.2.6", "version": "13.2.7",
"description": "Grand Theft Auto V Roleplay Bot", "description": "Grand Theft Auto V Roleplay Bot",
"main": "index.js", "main": "index.js",
"nodemonConfig": { "nodemonConfig": {
+2 -2
View File
@@ -10,7 +10,7 @@ const { REST } = require('@discordjs/rest');
module.exports = { module.exports = {
// Register guild commands // Register guild commands
RegisterGuildCommands: async function(client, guild) { RegisterGuildCommands: async function(client, guild) {
const commands = []; let commands = [];
const commandFiles = fs.readdirSync(path.join(__dirname, "..", "commands")).filter(file => file.endsWith('.js')); const commandFiles = fs.readdirSync(path.join(__dirname, "..", "commands")).filter(file => file.endsWith('.js'));
// Place your client and guild ids here // Place your client and guild ids here
@@ -40,7 +40,7 @@ module.exports = {
// Register global commands // Register global commands
RegisterGlobalCommands: async function(client) { RegisterGlobalCommands: async function(client) {
const commands = []; let commands = [];
const commandFiles = fs.readdirSync(path.join(__dirname, "..", "commands")).filter(file => file.endsWith('.js')); const commandFiles = fs.readdirSync(path.join(__dirname, "..", "commands")).filter(file => file.endsWith('.js'));
// Place your client and guild ids here // Place your client and guild ids here