“Blacklist Word Discord.js” Code-Antworten

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();
Cooperative Cod

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`)
}
});
EXATUBE™

Ähnliche Antworten wie “Blacklist Word Discord.js”

Fragen ähnlich wie “Blacklist Word Discord.js”

Weitere verwandte Antworten zu “Blacklist Word Discord.js” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen