as title
my last discord bot is using v11 or maybe older version discord.js to build on heroku.
but heroku free dyno will stop since 2022/11, so i'm try to make a new version discord bot with v14.3.0 and try some new stuff ( like slash command)
now i'm follow the guide's CREATING YOUR BOT, and i finish that and run successful
but when i try to make those Guild ID version commands to global commands, it doesn't work anymore, i was turn
rest.put(Routes.applicationGuildCommands(clientId, guildId), { body: commands })
.then(() => console.log('Successfully registered application commands.'))
.catch(console.error);```
to
```js
rest.put(Routes.applicationCommands(clientId), { body: commands })
.then(() => console.log('Successfully registered application commands.'))
.catch(console.error);```
and all commands fail at all server (what ever they are in or not in guild ID server list)
how to fix it ?
i know this is a very basic question but i stuck on it.
if you need full code they are at github https://github.com/Nebulosa-Cat/Discord-Bot
thank you.
