diff --git a/commands/analyze/safe-url.js b/commands/analyze/safe-url.js index e973b9e4..fb5b8e4d 100644 --- a/commands/analyze/safe-url.js +++ b/commands/analyze/safe-url.js @@ -46,8 +46,8 @@ module.exports = class SafeUrlCommand extends Command { threatEntries: [{ url }] } }); - if (body.matches.length) return msg.reply('⚠️ This link is unsafe! **Do not click it!** ⚠️'); - return msg.reply(`👍 Good to go! This link is safe!`); + if (!body.matches) return msg.reply(`👍 Good to go! This link is safe!`); + return msg.reply('⚠️ This link is unsafe! **Do not click it!** ⚠️'); } catch (err) { return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); }