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

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

代码示例1
let blacklisted = ['word', 'word'];
    let foundInText = false;
    for (var i in blacklisted) {
      if (message.content.toLowerCase().includes(blacklisted[i].toLowerCase())) foundInText = true;
    }
    if (foundInText) {
      message.delete();
      Message.channel.send();