commands now deploy globally

This commit is contained in:
staticfanfare 2023-12-17 20:55:34 -05:00
parent 53816595f6
commit 420fd837f6
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
const { REST, Routes } = require('discord.js');
const { clientID, guildID, token } = require('./config.json');
const { clientID, token } = require('./config.json');
const fs = require('node:fs');
const path = require('node:path');
@ -34,7 +34,7 @@ const rest = new REST().setToken(token);
// The put method is used to fully refresh all commands in the guild with the current set
const data = await rest.put(
Routes.applicationGuildCommands(clientID, guildID),
Routes.applicationCommands(clientID),
{ body: commands },
);

4
example.config.json Normal file
View File

@ -0,0 +1,4 @@
{
"token": "BOT-TOKEN-GOES-HERE",
"clientID": "APP-ID-GOES-HERE",
}