"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
d.js toolkit
d.js toolkit2w 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! - Marked as resolved by staff
HAINAMLION
HAINAMLIONOP2w ago
oh 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
d.js docs
d.js docs2w ago
:property: GuildMemberRoleManager#cache [email protected] The cache of items for this manager.
HAINAMLION
HAINAMLIONOP2w ago
Oh thank you Let me code and see if there is any issue then i will close this thread

Did you find this page helpful?