mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
Format dates with moment
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const moment = require('moment');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const filterLevels = ['Off', 'No Role', 'Everyone'];
|
||||
const verificationLevels = ['None', 'Low', 'Medium', '(╯°□°)╯︵ ┻━┻', '┻━┻ ミヽ(ಠ益ಠ)ノ彡┻━┻'];
|
||||
@@ -24,7 +25,7 @@ module.exports = class ServerInfoCommand extends Command {
|
||||
.addField('❯ Name', msg.guild.name, true)
|
||||
.addField('❯ ID', msg.guild.id, true)
|
||||
.addField('❯ Region', msg.guild.region.toUpperCase(), true)
|
||||
.addField('❯ Creation Date', msg.guild.createdAt.toDateString(), true)
|
||||
.addField('❯ Creation Date', moment.utc(msg.guild.createdAt).format('MMM Do, YYYY [at] hh:mm:ss A'), true)
|
||||
.addField('❯ Explicit Filter', filterLevels[msg.guild.explicitContentFilter], true)
|
||||
.addField('❯ Verification Level', verificationLevels[msg.guild.verificationLevel], true)
|
||||
.addField('❯ Owner', msg.guild.owner.user.tag, true)
|
||||
|
||||
Reference in New Issue
Block a user