Adding one liner to set the guild id

This commit is contained in:
2023-03-19 15:01:17 +01:00
parent 839b98e5e8
commit 3d0c21301f

View File

@@ -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'));