“Blacklist Word Discord.js” Kode Jawaban

Discord Word Daftar Hitam

    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™

Jawaban yang mirip dengan “Blacklist Word Discord.js”

Pertanyaan yang mirip dengan “Blacklist Word Discord.js”

Lebih banyak jawaban terkait untuk “Blacklist Word Discord.js” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya