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!
- ✅
Marked as resolved by OPYou dont run client
.
Why not classes
Or init function in module files
in visual studio it runs but in vps it doesnt
why
First of all you do not need all intents
Second if all i dont see you running node or any other command in that terminal
i am using a web vps
okay? what does that have to do with this
isn't 32767 just all intents?
Tag suggestion for @Shaun2177:
We highly recommend only specifying the intents you actually need.
- Note, that
98303
, 32767
or whatever other magic number you read that represents "all intents", gets outdated as soon as new intents are introduced.
- The number will always represent the same set of intents, and will not include new ones. There is no magic "all intents" bit.oh right, duh
until not running the code
We highly recommend only specifying the intents you actually need.
- Note, that
98303
, 32767
or whatever other magic number you read that represents "all intents", gets outdated as soon as new intents are introduced.
- The number will always represent the same set of intents, and will not include new ones. There is no magic "all intents" bit.those partials are not correct either
i also only see you installing stuff
but i dont see the command to actually start your index file anywhere
it is in next file
it is in another file
before 2 3 days it runed properly with the same code but now its not running with the same code i tried in different vps also
and it run locally in my computer but when i upload it in vps then it doesnt run it only comes on dosesnt show any response or any activity
no activity status only comming online
so i should install discord.js@13 or wot ??
le me check
cmd command for checking discord.js version ?
which file i should show ??
its 18.8.0
djs -v ??
its 14.13
ok
in ready.js file
node .
??
no in vps i run it by the button given there
it runs i think the index file ( the main file f the bot)
yes
it runs the index.js
yes
yes
you got it
support server of that vpsPlease add the following code to your code base outside of any other event listeners and provide the full log output relevant to your issue.
- Note: if you initialize your Client as
bot
or other identifiers you need to use these instead of client
- If the output is too long to post consider using a bin instead: gist | paste.gg | sourceb.in | hastebinok
showing discord.js not found
@Qjuh
tag me if u replied
no its not wait i'll show you
its the bot
and this is the code
ok w8
ok so now its logged in but why isnt it replying can you tell me ?/
If you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn moreok so i kept console.log(MessageContent) so it doesnt shows teh message
it means message is not taken yeah
new error that has been solved
its the 18th line
no this is the file
where it says error
but when i do the interaction of that file i provided first thee occurs
no
oh yeah like
that folder i provided first has a button so when i press that button
it shows this error
and which leads saying ticket.js/22
idk whats happening
ticket.js
selfrole.js
it has
have have kept same interaction id in both got it
@Qjuh
why its not working
ok
yes i undersrtand
i have two events by same name'
so its not working
ok
i thinks its filtered
by ticket_
also, .customId is a string so no need to string it again
what to do to disable actionrowmenu after a certain time ??
selectMenuRow.
???