How to do an action in a slash command after a specific amount of time.

This command adds a role to a user, i want the bot to remove this role from the member after 2mins, how do i do?
3 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
ifml
ifml11mo ago
setTimeout()
Massicraft
Massicraft11mo ago
Thanks