Closed Araci-co closed 2 years ago
if(message.channel.id != textChannel.id) return;
//Delete the message once it got sent into the channel, bot messages after 5 seconds, user messages instantly!
if (message.author.id === client.user.id) {
setTimeout(()=>{
if (!message.deleted) {
message.delete().catch((e) => {
console.log(e)
})
}
}, 3000)
} else {
setTimeout(()=>{
if (!message.deleted) {
message.delete().catch((e) => {
console.log(e)
})
}
}, 3000)
}
if(message.author.bot) return;
something like that
distubeEven.js line 1124 to 1139 @Tomato6966 @ I want to delete user messages after 3s like bot messages. What should I do?