IGDB Command, Minor changes

This commit is contained in:
Daniel Odendahl Jr
2017-12-12 04:06:26 +00:00
parent dd1a980ce9
commit 8bcbb3902c
13 changed files with 101 additions and 26 deletions
+5 -1
View File
@@ -46,7 +46,11 @@ module.exports = class KickstarterCommand extends Command {
.addField(' Backers',
data.backers_count, true)
.addField(' Creator',
data.creator.name, true);
data.creator.name, true)
.addField(' Creation Date',
new Date(data.created_at * 1000).toDateString(), true)
.addField(' Deadline',
new Date(data.deadline * 1000).toDateString(), true);
return msg.embed(embed);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);