How do I add the timeout function in discord.js ?
Please note I'm talking about the new timeout feature, not like assigning a mutedrole
According to the docs you need to use member.timeout()
So your code would look something like this:
member.timeout(5 * 60 * 1000)
.then(() => console.log("Timed out member"))
.catch(console.log);