nikolaischunk/discord-phishing-links

message.toLowerCase() is not a function.

EBMOfficial opened this issue · 1 comments

Hello,

I'm currently integrating this package into my Discord bot and have encountered an error.
image
This issue occurs on any message I send. Let it be a scam link, normal link or even just a simple message.
This is my code:
client.on('messageCreate', async message => { const guildID = await APSchema.findOne({ guildid: message.guild.id }) if (guildID) { if (message.guild.id === guildID.guildid) { async function checkMessage (message) { //check string on confirmed Phishing Domains let isGrabber = await stopPhishing.checkMessage(message) //Now you can do something with the Boolean Value console.log(isGrabber) return isGrabber } async function checkMessageFull (message) { //check string on confirmed & not yet confirmed but suspicious Phishing Domains let isGrabber = await stopPhishing.checkMessage(message) //Now you can do something with the Boolean Value console.log(isGrabber) return isGrabber } checkMessage(message) checkMessageFull(message) } } else return; })
I'm seeing that the line "let isGrabber = await stopPhishing.checkMessage(message)" is where this issue is occurring. Is there a way to solve this issue?

I'm running Discord.JS v13.6.

Wrong repository. Sorry!