stripIndents

This commit is contained in:
Daniel Odendahl Jr
2017-05-03 01:19:44 +00:00
parent 74fa836044
commit 2ee1f3e594
15 changed files with 100 additions and 79 deletions
+5 -2
View File
@@ -1,5 +1,6 @@
const { Command } = require('discord.js-commando');
const { RichEmbed } = require('discord.js');
const { stripIndents } = require('common-tags');
const moment = require('moment');
require('moment-duration-format');
@@ -30,8 +31,10 @@ module.exports = class GuildInfoCommand extends Command {
.addField('**ID:**',
msg.guild.id, true)
.addField('**Created On:**',
`${msg.guild.createdAt}
${moment.duration(Date.now() - msg.guild.createdTimestamp).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.`, true)
stripIndents`
${msg.guild.createdAt}
${moment.duration(Date.now() - msg.guild.createdTimestamp).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.
`, true)
.addField('**Default Channel:**',
msg.guild.defaultChannel, true)
.addField('**Region:**',