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 toolkit•199d 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
Aram•199d ago
the bot is only in my server
DD
d.js docs•199d ago
(event) Client#guildMemberUpdate
Emitted whenever a guild member changes - i.e. new role, removed role, nickname.
M
Mark•199d ago
use that event, compare old/newMember.isCommunicationDisabled()
A
Aram•199d ago
Thanks 😄
Support server for discord.js, a Node.js module to interact with the Discord bot API.
58KMembers
View on DiscordWant results from more Discord servers?
More PostsWhy isnt a public endpoint needed on discord.js ?When developing using discord api (without discord.js library) by itself, per their guides, a publiMessage broker / Message queueIs there any native support for message brokers like rabbitmq?
Thanks in advanceFATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memoryI am getting this error like 20 seconds after the bot is on but 2 days ago it was working fine and iWhat method to check if invite is paused?Ping if you know the answer (pls)🐛 Issue: Permission Error (50013) When Deleting a Role with Discord Bot**Description:**
I am encountering a 50013 Permission error when my Discord bot tries to delete a roget all mesages after a specific timeIm making a purge command but when i try to delete messages it says it can only delete messages thatusing rest API to update server bannerI'm trying to use the REST api to update my server banner.
The problem is that it seems to work - aboort erroron latest djsInvalid bitfield in audit log channel permissions eventHey,
I currently have the issue that errors like these are sent multiple times a minute into my bot'StatusHello Everyone.
I am currently having trouble on setting my bots status. Would anyone have a basic errors in my codehey so im trying to make a streaming selfbot but ive been getting loads of errors whenever i try to TTSi want to create a simple discord bot, that will read user messages in specific channel and bot will