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
- 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!the bot is only in my server
(event) Client#guildMemberUpdate
Emitted whenever a guild member changes - i.e. new role, removed role, nickname.
use that event, compare old/newMember.isCommunicationDisabled()
Thanks 😄