Revert "snekfetch 4.0.0"

This reverts commit 9aaf21913b.
This commit is contained in:
Daniel Odendahl Jr
2018-02-26 22:24:37 +00:00
parent 3789222de7
commit 53eb402472
22 changed files with 40 additions and 45 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ module.exports = class GitHubCommand extends Command {
new Date(body.updated_at).toDateString(), true);
return msg.embed(embed);
} catch (err) {
if (err.statusCode === 404) return msg.say('Could not find any results.');
if (err.status === 404) return msg.say('Could not find any results.');
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
}