Answers for "blacklist word discord.js"

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
0

blacklist word discord.js

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`)
}
});
Posted by: Guest on June-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language