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
- 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 staffping me if u know what this means
show your code and full error, #how-to-get-help
oh ok
gimme a sec
@werewolvinny 👻🌈 here u go
ooooooo
that ok now i get it
ill send a link
to be fair, i want to know what the error is caused by, googling has no results, scouring the api docs has no results
SourceBin
You cannot remove this app's Entry Point command in a bulk update o...
Instantly share your code with the world.
i tried using chatgpt and tabnine
but that did nothing
and your code
can i stream it on vc?
no
Send it in a pastebin
The code throwing the error
i belive its the command register
so ill paste the index.js and the command register in the source bit
SourceBin
You cannot remove this app's Entry Point command in a bulk update o...
Instantly share your code with the world.
new link
it’s not even in the discord api error code docs
it has the error code
my index
the json code from the rest request
and the command register
???
wdym
i mean that error is non existent
huh
how do u mean
i really have no idea how to fix this
i mean discord doesn’t have that error in the documentation
whoa
new and uknown error
holy sht
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
rlly
yeah all of us at dcl have no idea
so
idk where it came from
isnt there anyone who knows of this error
also doesn’t everyone register their commands on start
Ask ddevs
#useful-servers
who do u recomend then
No
Thats bad practise and can get you ratelimited
how should i do it then?
You run the file separately when you edit your command data
i think that might have happened once
hm i thought everyone registered them on start
i do
every tutorial i’ve watched does
if thar were the case the use of REST wouldnt make much sense
yea
me too
Thats why we do not recommend tutorials
Because they teach incorrect practises
Such as that
yeah but the guy that makes them is also my discord boss
how do u recommend we learn
The guide
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
wat guide exactly?
https://discordjs.guide i think
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
hm
maybe i was following the wrong guide
cuz i was following loads of diff tuts
it probaly wasnt a good idea was it
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()
)oh hey
sry i didnt see u
uhhhhhh im not sure i know wat u mean
I'm not sure how to be more explicit
can i show u my code
no I saw your code
I can't be more explicit than
<REST>.delete(Routes.applicationCommand(<id>))
or <Client>.application.commands.delete()
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
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"
fine ill dump it at the top
see wat i mean
please read this
im saying i have no clue where im supposed to put it
idk what im looking at here
:GUN: 🧒
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
maybe you should
Especially rule 3
(they were kicked)
oh