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 toolkit2mo 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
Codex Eternal
Codex EternalOP2mo ago
ping me if u know what this means
treble/luna
treble/luna2mo ago
show your code and full error, #how-to-get-help
Codex Eternal
Codex EternalOP2mo ago
oh ok gimme a sec
Codex Eternal
Codex EternalOP2mo ago
@werewolvinny 👻🌈 here u go
d.js docs
d.js docs2mo 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.
Codex Eternal
Codex EternalOP2mo ago
ooooooo that ok now i get it ill send a link
Alex
Alex2mo 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
Codex Eternal
Codex EternalOP2mo ago
i tried using chatgpt and tabnine but that did nothing
treble/luna
treble/luna2mo ago
and your code
Codex Eternal
Codex EternalOP2mo ago
can i stream it on vc?
treble/luna
treble/luna2mo ago
no Send it in a pastebin The code throwing the error
Codex Eternal
Codex EternalOP2mo ago
i belive its the command register so ill paste the index.js and the command register in the source bit
Codex Eternal
Codex EternalOP2mo ago
new link
Alex
Alex2mo ago
it’s not even in the discord api error code docs
Codex Eternal
Codex EternalOP2mo ago
it has the error code my index
Alex
Alex2mo ago
the json code from the rest request
Codex Eternal
Codex EternalOP2mo ago
and the command register ??? wdym
Alex
Alex2mo ago
i mean that error is non existent
Codex Eternal
Codex EternalOP2mo ago
huh how do u mean i really have no idea how to fix this
Alex
Alex2mo ago
i mean discord doesn’t have that error in the documentation
Codex Eternal
Codex EternalOP2mo ago
whoa new and uknown error holy sht
treble/luna
treble/luna2mo 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
Codex Eternal
Codex EternalOP2mo ago
rlly
Alex
Alex2mo ago
yeah all of us at dcl have no idea so idk where it came from
Codex Eternal
Codex EternalOP2mo ago
isnt there anyone who knows of this error
Alex
Alex2mo ago
also doesn’t everyone register their commands on start
treble/luna
treble/luna2mo ago
Ask ddevs #useful-servers
Codex Eternal
Codex EternalOP2mo ago
who do u recomend then
treble/luna
treble/luna2mo ago
No Thats bad practise and can get you ratelimited
Codex Eternal
Codex EternalOP2mo ago
how should i do it then?
treble/luna
treble/luna2mo ago
You run the file separately when you edit your command data
Codex Eternal
Codex EternalOP2mo ago
i think that might have happened once
Alex
Alex2mo ago
hm i thought everyone registered them on start
Codex Eternal
Codex EternalOP2mo ago
i do
Alex
Alex2mo ago
every tutorial i’ve watched does
treble/luna
treble/luna2mo ago
if thar were the case the use of REST wouldnt make much sense
Codex Eternal
Codex EternalOP2mo ago
yea me too
treble/luna
treble/luna2mo ago
Thats why we do not recommend tutorials Because they teach incorrect practises Such as that
Alex
Alex2mo ago
yeah but the guy that makes them is also my discord boss
Codex Eternal
Codex EternalOP2mo ago
how do u recommend we learn
treble/luna
treble/luna2mo ago
The guide
Alex
Alex2mo 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
Codex Eternal
Codex EternalOP2mo ago
wat guide exactly?
d.js docs
d.js docs2mo ago
:guide: Home: What's new read more
Alex
Alex2mo ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Codex Eternal
Codex EternalOP2mo 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
duck2mo 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())
Codex Eternal
Codex EternalOP2mo ago
oh hey sry i didnt see u uhhhhhh im not sure i know wat u mean
duck
duck2mo ago
I'm not sure how to be more explicit
Codex Eternal
Codex EternalOP2mo ago
can i show u my code
duck
duck2mo 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 docs2mo ago
Explaining <Class> and Class#method notation: learn more
Codex Eternal
Codex EternalOP2mo 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
duck2mo 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"
Codex Eternal
Codex EternalOP2mo ago
fine ill dump it at the top
Codex Eternal
Codex EternalOP2mo ago
No description
Codex Eternal
Codex EternalOP2mo ago
see wat i mean
duck
duck2mo ago
please read this
Codex Eternal
Codex EternalOP2mo ago
im saying i have no clue where im supposed to put it idk what im looking at here :GUN: 🧒
Codex Eternal
Codex EternalOP2mo ago
No description
Codex Eternal
Codex EternalOP2mo 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/luna2mo ago
maybe you should Especially rule 3
duck
duck2mo ago
(they were kicked)
treble/luna
treble/luna2mo ago
oh
Want results from more Discord servers?
Add your server