I shouldn't have to do this

This commit is contained in:
Daniel Odendahl Jr
2017-09-05 04:03:40 +00:00
parent ddfec1b6f4
commit b0c615d48a
+2 -2
View File
@@ -51,8 +51,8 @@ module.exports = class MemeCommand extends Command {
const { type, top, bottom } = args;
try {
const { body } = await snekfetch
.get(`https://memegen.link/api/templates/${type}/${top}/${bottom}`);
return msg.say(body.masked);
.get(`https://memegen.link/api/templates/${type}/${top}/${bottom}`, { followRedirects: true });
return msg.say(body.direct.masked);
} catch (err) {
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}