updating to discord v13
This commit is contained in:
11
deploy-commands.js
Normal file
11
deploy-commands.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const { REST } = require('@discordjs/rest');
|
||||
const { Routes } = require('discord-api-types/v9');
|
||||
//const { clientId, guildId, token } = require('./config.json');
|
||||
|
||||
const commands = [];
|
||||
|
||||
const rest = new REST({ version: '9' }).setToken(token);
|
||||
|
||||
rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: commands })
|
||||
.then(() => console.log('Successfully registered application commands.'))
|
||||
.catch(console.error);
|
||||
Reference in New Issue
Block a user