📜  黑名单词 discord.js - Javascript 代码示例

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

代码示例2
client.on('message', badboy => {
let args = badboy.content.split(" ").slice(0).join(" ");
if(args.includes(" احا ")) {
  badboy.delete()
badboy.channel.send(`this word not allowed here`)
}
});