"Lock" feature
Hi. I need help with my own "Lock" feature. Here's how it work:
- When user use /lock, get and save all of user's current roles into a map or array or something like that
- Next, remove all of user's roles
- If user use /unlock, give the user's back all of the roles saved
I can:
- Set up the commands, not the functions
I'm using the lastest version of discord.js, npm and node version.
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!
- ✅
Marked as resolved by staffoh i mean uh the code part
like getting the roles into an array
like i dont know a better way other than for loop the user
Oh thank you
Let me code and see if there is any issue
then i will close this thread