loading Slash Commands with REST dont works
it just stop here and don't load the commands , dont return any erros
22 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.this is what my CommandsArray look likes
and this is rest definition
i use v14
I think you're passing in the wrong command info array
The command array you're supposed to pass in is an array consisting of the command info objects generated by the SlashCommandBuilder instead of the whole file which you're doing
Example:
creates
and if you push that info object to an array for each command you have and use that array as the REST body it should work
i don't use builders
how i can know? to be sure
+ reseting token helps?. edit:didn't work
is this on replit?
@synsetz
yes why
as of late, I've seen more and more people with hanging promises on replit, and someone mentioned it's entirely possible that the shared ip was banned
consider just not using replit
if i have money i wouldn't use replit
i use replit from 1 year now, I don't this is with replit 🙂 Idk
a lot of people can use and get an ip banned in a year, I don't believe that having used it for a year would prove that it's not a replit issue
so what should i do
well I have 2 bots, my other bot is working fine
do you have a computer?
yes ofc
(I ask because it's not "of course", a few people have come through here without computers because of how poor they are)
just try deploying your commands off your computer first
of course don't mean im rich, i stay years to but it what i mean i if i code a bot i should be with pc
just try deploying your commands off your computer first
what this mean didn't get ityour command deployment script
run on your computer
if i code a bot i should be with pcme too, but not everyone shares that sentiment
u mean i run the bot with visual studio code or?
yeah
I'm not the best at English
well vscode is an IDE
if you have node installed, you can run it from whatever terminal you have
so this is what u tell me to do?
u mean i try run the bot from another something not replit
yes
ok I'll try