📌  相关文章
📜  发誓 javascript + 冷却 + 删除消息 discord.js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:17.099000             🧑  作者: Mango

代码示例1
const swearWords = [censored stuff]
client.on('message' message => {
    for(let i = 0; i < swearWords.length; i++) {
        if(message.content.includes(i) {
            message.delete()
            message.channel.send('Do **NOT** post swear words in the chat)
        }
    }
})