Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Commit 305ce34

Browse files
authored
Add files via upload
1 parent 155d465 commit 305ce34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy-commands.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const fs = require("fs");
22
const path = require("path");
33
const { REST } = require('@discordjs/rest');
4-
const { Routes } = require('discord-api-types/v9');
4+
const { Routes } = require('discord-api-types/v10');
55
const { clientId, guildId, token } = require('./config/config.json');
66

77
const commands = [];
@@ -15,7 +15,7 @@ for (const file of commandFiles) {
1515
}
1616

1717

18-
const rest = new REST({ version: '9' }).setToken(token);
18+
const rest = new REST({ version: '10' }).setToken(token);
1919

2020
rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: commands })
2121
.then(() => console.log('Successfully registered application commands.'))

0 commit comments

Comments
 (0)