I am trying to get my bot to detect a message from a specific person. If this message is a link/image/file, I want it to automatically react with the specified emojis.
Everything works correctly, except for the "if message is a link". This does not seem to work at all. I've tried searching the documentation, and can't seem to find the solution.
Any help is appreciated!
client.on('messageCreate', message => {
if (message.author.id === '217900978756780032') { //works
if (message.content.includes("https://")) { //does NOT work
if (message.attachments.size > 0) { //works
message.react('<:facebook:1009793997872562287>')
message.react('<a:siren:886047171768635432>')
}}}
})