forked from Supositware/Haha-Yes
If error return it
This commit is contained in:
parent
ac8ee01ca8
commit
021e98272d
1 changed files with 1 additions and 0 deletions
|
@ -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}`)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue