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
No description
36 Replies
d.js toolkit
d.js toolkit7d 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!
duck
duck7d ago
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 place
The One And Only Monster
tbh i didnt make the plugin i got it from youtube n github bot in in the server and is saying this is online
duck
duck7d ago
you've double checked that 1367875579365425232 is the correct id?
The One And Only Monster
thats for the channel
duck
duck7d ago
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
The One And Only Monster
erm tbh duck can i screenshare not too sure what im doing there
duck
duck7d ago
I don't really do that, and I'm also not sure what further info I'd provide
The One And Only Monster
im following the youtube video and he uses his discord channel id this is what i used
duck
duck7d ago
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
The One And Only Monster
okay how do i get the guild id
duck
duck7d ago
the same way as with the channel, right click -> copy id
The One And Only Monster
on the channel?
duck
duck7d ago
on the guild
The One And Only Monster
where is the guild sorry im confused
duck
duck7d ago
(guild is just how the api refers to servers, so you right click on the server icon)
The One And Only Monster
i could be wrong here but i right clicked the server went to copy id and its still throwing me the error
duck
duck7d ago
do you literally mean that you only copied the id, or did you update the id you're deploying to?
The One And Only Monster
i copyed the id and put in the 1367875579365425232 slot and saved reloaded n still same error
duck
duck7d ago
then could you show the updated error?
duck
duck7d ago
your error suggests it's still deploying to the old id
The One And Only Monster
"Admin_Channel_ID": "1367835529651163177",
duck
duck7d ago
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 id
The One And Only Monster
thats the hole code
duck
duck7d ago
please reset your token also a few other things but this also doesn't look like register-commands.js
duck
duck7d ago
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)
The One And Only Monster
where do i add this sorry
duck
duck7d ago
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 is
The One And Only Monster
Palworld Discord Server Control Bot Install is the video im following
duck
duck7d ago
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 works
The One And Only Monster
ill start again see if i can work it out
The One And Only Monster
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

Did you find this page helpful?