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
@@ -40,7 +40,7 @@ module.exports = class YuGiOhCommand extends commando.Command {
response.body.data.def, true)
.addField('**Level:**',
response.body.data.level, true);
message.channel.sendEmbed(embed);
return message.channel.sendEmbed(embed);
}
else {
const embed = new Discord.RichEmbed()
@@ -50,11 +50,11 @@ module.exports = class YuGiOhCommand extends commando.Command {
.setAuthor('Yu-Gi-Oh!', 'http://vignette3.wikia.nocookie.net/yugioh/images/1/10/Back-TF-EN-VG.png/revision/latest?cb=20120824043558')
.addField('**Card Type:**',
response.body.data.card_type, true);
message.channel.sendEmbed(embed);
return message.channel.sendEmbed(embed);
}
}
catch (err) {
message.channel.send(":x: Error! Card not Found!\n:notepad_spiral: Note: This command is **extremely** sensitive to casing and dashes and whatnot. Type the *exact* card name to get data!");
return message.channel.send(":x: Error! Card not Found!\n:notepad_spiral: Note: This command is **extremely** sensitive to casing and dashes and whatnot. Type the *exact* card name to get data!");
}
}
};