Global Commands are not registering

i made sure certain command is reserved for a particular server and remaining commands are global , the code which iam pasting below worked for the past 3 days but it stopped working yesterday - https://gist.github.com/Kiran-Alex/2920c666d0dadf5f309977b595fe3d03 and the output : - >
> node src/deploy-commands.js && node index.js

Starting bot command deployment...
Deploying 30 global commands...
> node src/deploy-commands.js && node index.js

Starting bot command deployment...
Deploying 30 global commands...
Gist
gist:2920c666d0dadf5f309977b595fe3d03
GitHub Gist: instantly share code, notes, and snippets.
10 Replies
d.js toolkit
d.js toolkit4d ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Kbone22
Kbone22OP4d ago
"discord.js": "^14.16.3",
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Kbone22
Kbone22OP4d ago
yeah it's not moving past - deploying x global commands i will add this this.rest.on('rateLimited', console.log) and see what happen
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Kbone22
Kbone22OP4d ago
Deploying 30 global commands...
{
global: false,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1313744581938786364/commands',
route: '/applications/:id/commands',
majorParameter: 'global',
hash: 'Global(PUT:/applications/:id/commands)',
limit: 2,
timeToReset: 34494,
retryAfter: 34494,
sublimitTimeout: 0,
scope: 'user'
}
Deploying 30 global commands...
{
global: false,
method: 'PUT',
url: 'https://discord.com/api/v10/applications/1313744581938786364/commands',
route: '/applications/:id/commands',
majorParameter: 'global',
hash: 'Global(PUT:/applications/:id/commands)',
limit: 2,
timeToReset: 34494,
retryAfter: 34494,
sublimitTimeout: 0,
scope: 'user'
}
i did some changes but yeah iam doing them frequently
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
Kbone22
Kbone22OP4d ago
ohh ok thankss
treble/luna
treble/luna4d ago
You also shouldn't deploy them every time your bot starts, only run your index and deploy only when you edit command data
Kbone22
Kbone22OP4d ago
That's so helpful, Thanks a ton

Did you find this page helpful?