From 2a95ae7a707cb35e253d249ac94e31397b8211e4 Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Fri, 3 Mar 2017 23:31:19 -0500 Subject: [PATCH] Fix in Osu Command --- commands/search/osu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/osu.js b/commands/search/osu.js index e5b7e5dc..3af4fbda 100644 --- a/commands/search/osu.js +++ b/commands/search/osu.js @@ -26,7 +26,7 @@ class OsuCommand extends commando.Command { "u": usernametosearch, "type": 'string' }, function(result) { - if(result[0].username === undefined) { + if(result[0] === undefined) { message.channel.sendMessage(":x: Error! User not found!"); } else { const embed = new Discord.RichEmbed()