If error return it

This commit is contained in:
loicbersier 2020-06-22 15:41:43 +02:00
parent ac8ee01ca8
commit 021e98272d

View file

@ -39,6 +39,7 @@ class memerclubCommand extends Command {
return response.json(); return response.json();
}).then((response) => { }).then((response) => {
console.log(response); console.log(response);
if (response.error) return message.channel.send(response.error);
message.channel.send(`Go check your epic post!\nhttps://memerclub.gamingti.me/post/${response.uuid}`) message.channel.send(`Go check your epic post!\nhttps://memerclub.gamingti.me/post/${response.uuid}`)
}); });
} }