commands now deploy globally
This commit is contained in:
parent
53816595f6
commit
420fd837f6
|
@ -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 },
|
||||
);
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"token": "BOT-TOKEN-GOES-HERE",
|
||||
"clientID": "APP-ID-GOES-HERE",
|
||||
}
|
Loading…
Reference in New Issue