Time of Role Assignment

Is it possible to show when, i.e. at what time a user received a certain role?
2 Replies
d.js toolkit
d.js toolkit2y 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!
Squid
Squid2y ago
You can listen for the member getting the role via the guildMemberUpdate event, then use Date.now() to get the current timestamp You can't do that retroactively though Audit logs do have a createdTimestamp if that's how you listen for the role being added
Want results from more Discord servers?
Add your server