Remove all useless async

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 12:16:58 +00:00
parent 33b7d18d54
commit 0ce7eb3ee1
95 changed files with 287 additions and 287 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ module.exports = class OsuCommand extends commando.Command {
type: 'string'
});
if (!response.body[0]) {
message.channel.send(":x: Error! User not found!");
return message.channel.send(":x: Error! User not found!");
}
else {
const embed = new Discord.RichEmbed()
@@ -65,11 +65,11 @@ module.exports = class OsuCommand extends commando.Command {
response.body[0].count_rank_s, true)
.addField('**A:**',
response.body[0].count_rank_a, true);
message.channel.sendEmbed(embed);
return message.channel.sendEmbed(embed);
}
}
catch (err) {
message.channel.send(":x: Error! User not Found!");
return message.channel.send(":x: Error! User not Found!");
}
}
};