.json multiple values

Its my bot.js file

const Discord = require(“discord.js”);
const client = new Discord.Client();
const sansur = require("./sansur.json");

var ccc = sansur.ccc;

client.on(“ready”, () => {
console.log(Logged in as ${client.user.tag}!);
});

client.on(“message”, message => {
if (message.content.startsWith(sansur.ccc)) message.delete();
});

and the .json file :

{
“ccc”: [“1”,“2”]
}

its not working message is not deleting
but

{
“ccc”: [“1”]
}

this is working, why ?

(sorry for my bad english :p)

This should do the trick:

sansur.ccc.forEach(word =>{
if(message.content.toLowerCase().includes(word.toLowerCase)) return message.delete;
})

thanks for answer but its not worked xP
I delete .json file and I add this bot.js file
let blacklisted = [
“1”,
“2”
];

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(“test :rage:”).then(msg => msg.delete(5000));
}
});
(https://stackoverflow.com/questions/47315999/discord-js-bot-is-deleting-all-messages/53454324#53454324)

I presume the reason this is not working is because the if(foundInText) runs instantly, while the code checks the message, so you could do this instead:

let blacklisted = [
“1”,
“2”
];
for (var i in blacklisted) {
if (message.content.toLowerCase().includes(blacklisted[i].toLowerCase()))
foundInText()
}

function foundInText() {
message.delete();
message.channel.send(“test :rage:”).then(msg => msg.delete(5000));
}
});