mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +02:00
Remove all useless async
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user