Spaces:
Sleeping
Sleeping
Upload 22 files
Browse files- src/deploy-commands.js +2 -0
src/deploy-commands.js
CHANGED
|
@@ -36,6 +36,8 @@ export async function deployCommands() {
|
|
| 36 |
const rest = new REST({ version: '10' }).setToken(token)
|
| 37 |
|
| 38 |
try {
|
|
|
|
|
|
|
| 39 |
if (guildId) {
|
| 40 |
await rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: commandData })
|
| 41 |
console.log(`[deploy] Successfully registered ${commandData.length} commands to guild ${guildId}`)
|
|
|
|
| 36 |
const rest = new REST({ version: '10' }).setToken(token)
|
| 37 |
|
| 38 |
try {
|
| 39 |
+
console.log('[deploy] Commands array:', JSON.stringify(commandData))
|
| 40 |
+
|
| 41 |
if (guildId) {
|
| 42 |
await rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: commandData })
|
| 43 |
console.log(`[deploy] Successfully registered ${commandData.length} commands to guild ${guildId}`)
|