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