This commit is contained in:
Daniel Odendahl Jr
2017-10-08 15:42:56 +00:00
parent 508da6abe2
commit cbe6248fd5
+2 -2
View File
@@ -25,10 +25,10 @@ module.exports = class YuGiOhCommand extends Command {
async run(msg, { query }) {
try {
const { body } = await snekfetch
.get(`http://yugiohprices.com/api/card_data/${query}`);
.get(`https://yugiohprices.com/api/card_data/${query}`);
if (body.status === 'fail') return msg.say('Could not find any results.');
const image = await snekfetch
.get(`http://yugiohprices.com/api/card_image/${query}`);
.get(`https://yugiohprices.com/api/card_image/${query}`);
const { data } = body;
const embed = new MessageEmbed()
.setColor(0xBE5F1F)