Javascript 如何从我的automod中获取过滤后的单词?
我正在尝试在我的Discord机器人的automod筛选器中查找“filtered”单词 这是我代码的一部分:Javascript 如何从我的automod中获取过滤后的单词?,javascript,discord,eris,Javascript,Discord,Eris,我正在尝试在我的Discord机器人的automod筛选器中查找“filtered”单词 这是我代码的一部分: const banned = ['insert extremely long list of banned words here'] const check = banned.some((substring) => msg.content.toLowerCase().includes(substring)) if (check === true){ [message log]
const banned = ['insert extremely long list of banned words here']
const check = banned.some((substring) => msg.content.toLowerCase().includes(substring))
if (check === true){
[message log]
}
我假设还有另一个字符串过滤器,我只是不确定它会是什么