trying to run a palworld server and i get this error after setup
can some 1 help me with this please i am new to node.js and discord.js

36 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!1. sounds like your bot isn't actually in that server (with id
1367875579365425232
)
2. it also looks like you're deploying commands on startup
generally we recommend against this and only deploying when you change the command data since it's completely unnecessary otherwise
this is why our guide uses REST
to deploy in the first placetbh i didnt make the plugin i got it from youtube n github
bot in in the server and is saying this is online
you've double checked that
1367875579365425232
is the correct id?thats for the channel
it needs to be the id of the guild you want to deploy to
if you want to restrict your commands to a specific channel, you'd control that from the integrations tab of your server's settings
erm tbh duck can i screenshare not too sure what im doing there
I don't really do that, and I'm also not sure what further info I'd provide
im following the youtube video and he uses his discord channel id this is what i used
well when you deploy guild commands, you need to deploy them to a guild with a guild id
it's always entirely possible this person has a server old enough that they have a channel with an id that matches the guild id
but I'm just telling you how the api works
okay how do i get the guild id
the same way as with the channel, right click -> copy id
on the channel?
on the guild
where is the guild sorry im confused
(guild is just how the api refers to servers, so you right click on the server icon)
i could be wrong here but i right clicked the server went to copy id and its still throwing me the error
do you literally mean that you only copied the id, or did you update the id you're deploying to?
i copyed the id and put in the 1367875579365425232 slot and saved reloaded n still same error
then could you show the updated error?

your error suggests it's still deploying to the old id
"Admin_Channel_ID": "1367835529651163177",

ok that's definitely not the field you should be updating
that sounds like it should be the channel id
you should probably start at
register-commands.js
and find where you're storing your guild idthats the hole code
please reset your token
also a few other things
but this also doesn't look like register-commands.js

ok so
config.get('ControlBot.Discord_ID')
, how is this value being determined?
(and thinking about it, I have to wonder why the bot id is under servers, but the server id isn't? but perhaps focus on one thing at a time)where do i add this sorry
I'm not telling you to add that line, that's what's currently in your code
I can't help you with your config, nor do I even know what this
config
module isPalworld Discord Server Control Bot Install
is the video im following
ok, but I still can't help you with your config, nor am I interested in learning about this
config
module
you should become familiar with how your bot worksill start again see if i can work it out

ok now have this error
(node:27068) [DEP0047] DeprecationWarning: The
util.isDate
API is deprecated. Please use arg instanceof Date
instead.
okay the buttons dont work on the discord console i find a bit strange