Adding one liner to set the guild id
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
const { REST, Routes } = require('discord.js');
|
||||
const { clientId, guildId, token } = require('./config.json');
|
||||
const { clientId, realguildId, testguildId, token } = require('./config.json');
|
||||
const fs = require('node:fs');
|
||||
|
||||
const guildId = testguildId;
|
||||
|
||||
const commands = [];
|
||||
// Grab all the command files from the commands directory you created earlier
|
||||
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
||||
|
||||
Reference in New Issue
Block a user