mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
I shouldn't have to do this
This commit is contained in:
@@ -51,8 +51,8 @@ module.exports = class MemeCommand extends Command {
|
|||||||
const { type, top, bottom } = args;
|
const { type, top, bottom } = args;
|
||||||
try {
|
try {
|
||||||
const { body } = await snekfetch
|
const { body } = await snekfetch
|
||||||
.get(`https://memegen.link/api/templates/${type}/${top}/${bottom}`);
|
.get(`https://memegen.link/api/templates/${type}/${top}/${bottom}`, { followRedirects: true });
|
||||||
return msg.say(body.masked);
|
return msg.say(body.direct.masked);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user