13.2.7 possible duplicate command fix
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user