Fix for Dates

This commit is contained in:
Daniel Odendahl Jr
2017-03-25 04:57:04 +00:00
parent cb4abd7ac4
commit a1c9606f99
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class GuildInfoCommand extends commando.Command {
.addField('**ID:**',
message.guild.id, true)
.addField('**Created On:**',
`${message.guild.createdAt} (${moment.duration(message.guild.createdTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago)`, true)
`${message.guild.createdAt}\n${moment.duration(message.guild.createdTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.`, true)
.addField('**Default Channel:**',
message.guild.defaultChannel, true)
.addField('**Region:**',
+2 -2
View File
@@ -73,9 +73,9 @@ module.exports = class UserInfoCommand extends commando.Command {
.addField('**ID:**',
user.id, true)
.addField('**Joined Discord On:**',
`${user.createdAt} (${moment.duration(user.createdTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago)`, true)
`${user.createdAt}\n${moment.duration(user.createdTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.`, true)
.addField('**Joined Server On:**',
`${message.guild.member(user).joinedAt} (${moment.duration(message.guild.member(user).joinedTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago)`, true)
`${message.guild.member(user).joinedAt}\n${moment.duration(message.guild.member(user).joinedTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.`, true)
.addField('**Status:**',
stat, true)
.addField('**Playing:**',