mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Remove moment and moment-duration-format
This commit is contained in:
@@ -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,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,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',
|
||||
|
||||
Reference in New Issue
Block a user