No response from client
I don't know why
and by the way the "Command" word printed is the on on the client.on('ready')..., not in the tickets_system slash command
need help
30 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 OPBot.js file:
Can you send the code in a bin?
How?
sourcebin or smth
off topic, but holy hot bar
?
Then give the link here
https://sourceb.in/VcAv2as0kS
I'm sorry, it's not ordered code
but there is a general problem there
the token in the bottom I changed it to an old one due to privacy
You should not have too many event listeners to a single event
How can I do that, I didn't found a good course about that
How to make it easier
to add to this you could have one event and then do something like
and then so on for commands, select menus etc
(that would be inside your interactionCreate event)
Exactly
Can I get an example from my code?
@AC / LogicTubes_Boss πΈπ¦ your issue is that you have too many listeners, and in each one you just return/ignore all other commands)
exactly
Ah!
In ur case, the first event should be the one that triggers first
I understand
And you return all other commands that don't have the name 'manage'
you mean if it's about buttons, then I need only one event listener for them?
and for slash commands one listener?
Instead, put all your code under one event, and check if the command meets the if statement, not the other way around
All interactions can go under one event
Ah, okay
ok, I will try
Otherwise, if you wish to keep different interactions in different events, don't return if it doesn't meet the if statement
Instead run the code if it meets the if statement
i couldn't really as you'd have to modify it to fit your code, what I do is have extensions endings for example btn.js, find that file and then execute it
based off the button custom id which i showed here
I understand, no problem
Thank you so much guys
π«‘
no nitro :(
:Rw8_love:
Np man πππ
Thank you @zeyad_155
hbb
:sxb_hearts: