showing results for - "blacklisted word discord js"
Anna
24 Mar 2019
1    let blacklisted = ['word', 'word'];
2    let foundInText = false;
3    for (var i in blacklisted) {
4      if (message.content.toLowerCase().includes(blacklisted[i].toLowerCase())) foundInText = true;
5    }
6    if (foundInText) {
7      message.delete();
8      Message.channel.send();