remove and add roles stop after time of running ?
hi guy's i want to ask about this problem
My bot works on my server to organize the server in general, remove roles, give them and take them away, and arrange the levels within my server.
But in the past period
The system has become unresponsive to many commands
Such as add and remove roles (especially in this regard)
As it caused many problems within my server
My code works normally when tested on my test bot
But when activated in the main bot, the system stops to respone for this handles (give and remove roles) after a while
I use a library
discord.js
Is the problem with the library or is there another defect?
4 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!hi @Qjuh thank you for reply .
on code it's normal command to add roles it's work nomrmaly
but i have alot of my other reaction handler like when some on join server using emoji and get roles and like that things>
can you tall me more about ratelimit , i think my system do a lot of roles handling (add - remove)
please show us your code instead of describing it
upload the relevant piece of code to pastebin / hastebin and send it here so we can take a look
luna is the Client
and this functions on my class
it's work , but after a while the system don't give roles or remove them.
on normal i do that
wait i show you one of my codes
so you mean i change give role function to await
🤣 it's old code sorry 🤣
thank of you help i will try to make sure all my functions as async and await for them