You cannot remove this app's Entry Point command in a bulk update operation.

i need help idk what this means plz someone help me ur my only hope...
68 Replies
d.js toolkit
d.js toolkit3mo 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 staff
null
nullOP3mo ago
ping me if u know what this means
treble/luna
treble/luna3mo ago
show your code and full error, #how-to-get-help
null
nullOP3mo ago
oh ok gimme a sec
null
nullOP3mo ago
null
nullOP3mo ago
@werewolvinny 👻🌈 here u go
d.js docs
d.js docs3mo ago
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
null
nullOP3mo ago
ooooooo that ok now i get it ill send a link
Alex
Alex3mo ago
to be fair, i want to know what the error is caused by, googling has no results, scouring the api docs has no results
null
nullOP3mo ago
i tried using chatgpt and tabnine but that did nothing
treble/luna
treble/luna3mo ago
and your code
null
nullOP3mo ago
can i stream it on vc?
treble/luna
treble/luna3mo ago
no Send it in a pastebin The code throwing the error
null
nullOP3mo ago
i belive its the command register so ill paste the index.js and the command register in the source bit
null
nullOP3mo ago
new link
Alex
Alex3mo ago
it’s not even in the discord api error code docs
null
nullOP3mo ago
it has the error code my index
Alex
Alex3mo ago
the json code from the rest request
null
nullOP3mo ago
and the command register ??? wdym
Alex
Alex3mo ago
i mean that error is non existent
null
nullOP3mo ago
huh how do u mean i really have no idea how to fix this
Alex
Alex3mo ago
i mean discord doesn’t have that error in the documentation
null
nullOP3mo ago
whoa new and uknown error holy sht
treble/luna
treble/luna3mo ago
first of all, you should not register your commands every start, thats why its a separate file and uses REST. Second of all, might be better asking ddevs as this error is indeed new to me
null
nullOP3mo ago
rlly
Alex
Alex3mo ago
yeah all of us at dcl have no idea so idk where it came from
null
nullOP3mo ago
isnt there anyone who knows of this error
Alex
Alex3mo ago
also doesn’t everyone register their commands on start
treble/luna
treble/luna3mo ago
Ask ddevs #useful-servers
null
nullOP3mo ago
who do u recomend then
treble/luna
treble/luna3mo ago
No Thats bad practise and can get you ratelimited
null
nullOP3mo ago
how should i do it then?
treble/luna
treble/luna3mo ago
You run the file separately when you edit your command data
null
nullOP3mo ago
i think that might have happened once
Alex
Alex3mo ago
hm i thought everyone registered them on start
null
nullOP3mo ago
i do
Alex
Alex3mo ago
every tutorial i’ve watched does
treble/luna
treble/luna3mo ago
if thar were the case the use of REST wouldnt make much sense
null
nullOP3mo ago
yea me too
treble/luna
treble/luna3mo ago
Thats why we do not recommend tutorials Because they teach incorrect practises Such as that
Alex
Alex3mo ago
yeah but the guy that makes them is also my discord boss
null
nullOP3mo ago
how do u recommend we learn
treble/luna
treble/luna3mo ago
The guide
Alex
Alex3mo ago
when i code bots i use a different package because i put it on cloudflare workers so it’s not paid, and it’s not using resources
null
nullOP3mo ago
wat guide exactly?
d.js docs
d.js docs3mo ago
:guide: Home: What's new read more
Alex
Alex3mo ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
null
nullOP3mo ago
hm maybe i was following the wrong guide cuz i was following loads of diff tuts it probaly wasnt a good idea was it
duck
duck3mo ago
I'm a little late, but addressing your error it means that you previously deployed a command of type 4, the 'primary entry point' for an activity then since a PUT request to the given route is for bulk overwriting commands, it attempts to delete the primary entry point command if you don't deploy it discord however restricts deletion of said command to an explicit deletion via a DELETE request to the appropriate endpoint, resulting in the error you've received side note: activities are not something supported by discord.js (aside from deploying commands of this sort) which is to say to delete the command, you'll want to use <REST>.delete(Routes.applicationCommand(<id>)) (or <Client>.application.commands.delete())
null
nullOP3mo ago
oh hey sry i didnt see u uhhhhhh im not sure i know wat u mean
duck
duck3mo ago
I'm not sure how to be more explicit
null
nullOP3mo ago
can i show u my code
duck
duck3mo ago
no I saw your code I can't be more explicit than <REST>.delete(Routes.applicationCommand(<id>)) or <Client>.application.commands.delete()
d.js docs
d.js docs3mo ago
Explaining <Class> and Class#method notation: learn more
null
nullOP3mo ago
yea but im not sure where im supposed to put it in my code or does it not matter do i put that at the bottom orrrr yea the moment i insert that into my code it just gives me more errors
duck
duck3mo ago
I'm not exactly sure whether you inserted it exactly as is or what errors you received, but if "exactly where to insert a line of code" is what you're struggling with, I'd suggest brushing up on the fundamentals particularly program flow/structure the only real answer is "insert it where you want it to execute"
null
nullOP3mo ago
fine ill dump it at the top
null
nullOP3mo ago
No description
null
nullOP3mo ago
see wat i mean
duck
duck3mo ago
please read this
null
nullOP3mo ago
im saying i have no clue where im supposed to put it idk what im looking at here :GUN: 🧒
null
nullOP3mo ago
No description
null
nullOP3mo ago
see i have no idea what to do with those things blindly aste it idk wat im doing i used chatgpt and tabnine no why
treble/luna
treble/luna3mo ago
maybe you should Especially rule 3
duck
duck3mo ago
(they were kicked)
treble/luna
treble/luna3mo ago
oh
Want results from more Discord servers?
Add your server