title: Blacklisted words | Filter words discord.bs
body: <p>I got one error with my blacklisted words, cannot read proprety &quot;.id&quot; of undefined. After &quot;db.get(...)&quot;</p>
  <p>Thanks to help me!</p>
  <p>// BLACKLISTED words</p>
  <pre><code>client.on('message', message =&gt; {
    if(message.author.bot) return;
    let wordarray = message.content.split(&quot; &quot;)
  
    let filterWords = db.get(`blacklistwords_${message.guild.id}_${message.guild.id}`)
  
    for(var i = 0; 1 &lt; filterWords.length; i++) {
      if(wordarray.includes(filterwords[i])) {
        message.delete()
        let Filter = new Discord.MessageEmbed()
        .setColor('#FFE90F')
        .setAuthor(message.guild.name, message.guild.iconURL())
        .setDescription('&lt;a:AttentionPink:706154679796760657&gt; | **This word is blacklisted from this guild!** Do not say that again!')
        .setTimestamp()
        message.author.send(Filter)
        break;
      }
    }
  });![enter image description here](https://i.stack.imgur.com/Gouis.jpg)
  </code></pre>