From 021e98272d75baf434d74a45f1fd8cd5d401eec3 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 22 Jun 2020 15:41:43 +0200 Subject: [PATCH] If error return it --- commands/general/memerclub.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/general/memerclub.js b/commands/general/memerclub.js index 0ef5f051..96d148fb 100644 --- a/commands/general/memerclub.js +++ b/commands/general/memerclub.js @@ -39,6 +39,7 @@ class memerclubCommand extends Command { return response.json(); }).then((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}`) }); }