This commit is contained in:
JonnyBro 2022-01-14 01:13:22 +05:00
parent 15894d3469
commit fd6ba9c735

View file

@ -19,7 +19,7 @@ class Joke extends Command {
async run(message, args, data) {
const joke = await this.client.icanhazdadjoke();
if (joke.status === 200) return message.error("misc:ERR_OCCURRED");
if (joke.status !== 200) return message.error("misc:ERR_OCCURRED");
const embed = new Discord.MessageEmbed()
.setDescription(joke.joke)