updating to discord v13

This commit is contained in:
John Facey
2022-06-29 19:49:03 -05:00
parent 4a421391f6
commit 3d6747f72b
13 changed files with 812 additions and 189 deletions

11
deploy-commands.js Normal file
View 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);