Answers for "discordjs how to make blacklisted words"

2

blacklisted word discord.js

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();
Posted by: Guest on April-15-2020

Code answers related to "discordjs how to make blacklisted words"

Code answers related to "Javascript"

Browse Popular Code Answers by Language