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
DT
d.js toolkit199d 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!
A
Aram199d ago
the bot is only in my server
DD
d.js docs199d ago
event (event) Client#guildMemberUpdate Emitted whenever a guild member changes - i.e. new role, removed role, nickname.
M
Mark199d ago
use that event, compare old/newMember.isCommunicationDisabled()
A
Aram199d ago
Thanks 😄
Want results from more Discord servers?
Add your server
More Posts