mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 21:40:49 +02:00
Format better
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = class ChannelInfoCommand extends Command {
|
||||
.addField('❯ NSFW', channel.nsfw ? 'Yes' : 'No', true)
|
||||
.addField('❯ Category', channel.parent ? channel.parent.name : 'None', true)
|
||||
.addField('❯ Type', types[channel.type], true)
|
||||
.addField('❯ Creation Date', moment.utc(channel.createdAt).format('MMM Do, YYYY [at] hh:mm:ss A'), true)
|
||||
.addField('❯ Creation Date', moment.utc(channel.createdAt).format('MM/DD/YYYY @ hh:mm:ss A'), true)
|
||||
.addField('❯ Topic', channel.topic || 'None');
|
||||
return msg.embed(embed);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ module.exports = class EmojiInfoCommand extends Command {
|
||||
.setThumbnail(emoji.url)
|
||||
.addField('❯ Name', emoji.name, true)
|
||||
.addField('❯ ID', emoji.id, true)
|
||||
.addField('❯ Creation Date', moment.utc(emoji.createdAt).format('MMM Do, YYYY [at] hh:mm:ss A'), true)
|
||||
.addField('❯ Creation Date', moment.utc(emoji.createdAt).format('MM/DD/YYYY @ hh:mm:ss A'), true)
|
||||
.addField('❯ Animated?', emoji.animated ? 'Yes' : 'No', true);
|
||||
return msg.embed(embed);
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ module.exports = class RoleInfoCommand extends Command {
|
||||
.addField('❯ Name', role.name, true)
|
||||
.addField('❯ ID', role.id, true)
|
||||
.addField('❯ Color', role.hexColor.toUpperCase(), true)
|
||||
.addField('❯ Creation Date', moment.utc(role.createdAt).format('MMM Do, YYYY [at] hh:mm:ss A'), true)
|
||||
.addField('❯ Creation Date', moment.utc(role.createdAt).format('MM/DD/YYYY @ hh:mm:ss A'), true)
|
||||
.addField('❯ Hoisted?', role.hoist ? 'Yes' : 'No', true)
|
||||
.addField('❯ Mentionable?', role.mentionable ? 'Yes' : 'No', true)
|
||||
.addField('❯ Permissions', perms.map(perm => permissions[perm]).join(', ') || 'None');
|
||||
|
||||
@@ -25,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', moment.utc(msg.guild.createdAt).format('MMM Do, YYYY [at] hh:mm:ss A'), true)
|
||||
.addField('❯ Creation Date', moment.utc(msg.guild.createdAt).format('MM/DD/YYYY @ 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)
|
||||
|
||||
@@ -34,7 +34,7 @@ module.exports = class UserInfoCommand extends Command {
|
||||
.setThumbnail(user.displayAvatarURL())
|
||||
.addField('❯ Name', user.tag, true)
|
||||
.addField('❯ ID', user.id, true)
|
||||
.addField('❯ Discord Join Date', moment.utc(user.createdAt).format('MMM Do, YYYY [at] hh:mm:ss A'), true)
|
||||
.addField('❯ Discord Join Date', moment.utc(user.createdAt).format('MM/DD/YYYY @ hh:mm:ss A'), true)
|
||||
.addField('❯ Bot?', user.bot ? 'Yes' : 'No', true);
|
||||
if (msg.channel.type === 'text') {
|
||||
try {
|
||||
@@ -48,7 +48,7 @@ module.exports = class UserInfoCommand extends Command {
|
||||
.setDescription(member.presence.activity
|
||||
? `${activities[member.presence.activity.type]} **${member.presence.activity.name}**`
|
||||
: '')
|
||||
.addField('❯ Server Join Date', moment.utc(member.joinedAt).format('MMM Do, YYYY [at] hh:mm:ss A'), true)
|
||||
.addField('❯ Server Join Date', moment.utc(member.joinedAt).format('MM/DD/YYYY @ hh:mm:ss A'), true)
|
||||
.addField('❯ Nickname', member.nickname || 'None', true)
|
||||
.addField('❯ Highest Role',
|
||||
member.roles.highest.id === msg.guild.defaultRole.id ? 'None' : member.roles.highest.name, true)
|
||||
|
||||
Reference in New Issue
Block a user