Remove moment and moment-duration-format

This commit is contained in:
Daniel Odendahl Jr
2017-08-30 22:14:24 +00:00
parent 158716a453
commit 7d1adaec39
14 changed files with 36 additions and 36 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const moment = require('moment');
module.exports = class ChannelInfoCommand extends Command {
constructor(client) {
@@ -34,7 +33,7 @@ module.exports = class ChannelInfoCommand extends Command {
.addField(' NSFW',
channel.nsfw ? 'Yes' : 'No', true)
.addField(' Creation Date',
moment(channel.createdAt).format('MMMM Do YYYY'), true)
channel.createdAt.toDateString(), true)
.addField(' Topic',
channel.topic || 'None');
return msg.embed(embed);
+1 -2
View File
@@ -1,6 +1,5 @@
const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const moment = require('moment');
const perms = require('../../assets/json/permissions');
module.exports = class RoleInfoCommand extends Command {
@@ -34,7 +33,7 @@ module.exports = class RoleInfoCommand extends Command {
.addField(' Color',
role.hexColor.toUpperCase(), true)
.addField(' Creation Date',
moment(role.createdAt).format('MMMM Do YYYY'), true)
role.createdAt.toDateString(), true)
.addField(' Hoisted',
role.hoist ? 'Yes' : 'No', true)
.addField(' Mentionable',
+1 -2
View File
@@ -1,6 +1,5 @@
const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const moment = require('moment');
const filterLevels = ['Off', 'No Role', 'Everyone'];
const verificationLevels = ['None', 'Low', 'Medium', '(╯°□°)╯︵ ┻━┻', '┻━┻ ミヽ(ಠ益ಠ)ノ彡┻━┻'];
@@ -26,7 +25,7 @@ module.exports = class GuildInfoCommand extends Command {
.addField(' ID',
msg.guild.id, true)
.addField(' Creation Date',
moment(msg.guild.createdAt).format('MMMM Do YYYY'), true)
msg.guild.createdAt.toDateString(), true)
.addField(' Region',
msg.guild.region, true)
.addField(' Explicit Filter',