Log when a member gets timed out

Is it possible for a Discord Bot to send a message in a Channel when a member gets Timed Out so for example, when i time out a member thru discords /timeout or i right click them and time out them, can de discord bot at that moment send a message in a channel saying that they got timed out and for how long. i just need to the line that checks if a member got timed out
5 Replies
d.js toolkit
d.js toolkit14mo 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!
Aram
AramOP14mo ago
the bot is only in my server
d.js docs
d.js docs14mo ago
event (event) Client#guildMemberUpdate Emitted whenever a guild member changes - i.e. new role, removed role, nickname.
Mark
Mark14mo ago
use that event, compare old/newMember.isCommunicationDisabled()
Aram
AramOP14mo ago
Thanks 😄
Want results from more Discord servers?
Add your server