mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Lots of Changes
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const moment = require('moment');
|
||||
|
||||
module.exports = class ChannelInfoCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'channel-info',
|
||||
aliases: ['channel'],
|
||||
group: 'guild-info',
|
||||
memberName: 'channel-info',
|
||||
description: 'Responds with detailed information on a channel.',
|
||||
guildOnly: true,
|
||||
clientPermissions: ['EMBED_LINKS'],
|
||||
args: [
|
||||
{
|
||||
key: 'channel',
|
||||
prompt: 'Which channel would you like to get information on?',
|
||||
type: 'channel',
|
||||
default: ''
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
const channel = args.channel || msg.channel;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0x00AE86)
|
||||
.addField('❯ Name',
|
||||
channel.name, true)
|
||||
.addField('❯ ID',
|
||||
channel.id, true)
|
||||
.addField('❯ NSFW',
|
||||
channel.nsfw ? 'Yes' : 'No', true)
|
||||
.addField('❯ Creation Date',
|
||||
moment(channel.createdAt).format('MMMM Do YYYY'), true)
|
||||
.addField('❯ Topic',
|
||||
channel.topic || 'None');
|
||||
return msg.embed(embed);
|
||||
}
|
||||
};
|
||||
@@ -16,7 +16,7 @@ module.exports = class RoleInfoCommand extends Command {
|
||||
args: [
|
||||
{
|
||||
key: 'role',
|
||||
prompt: 'Which role would you like to get info on?',
|
||||
prompt: 'Which role would you like to get information on?',
|
||||
type: 'role'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const moment = require('moment');
|
||||
const { filterLevels, verificationLevels } = require('../../assets/json/server-info');
|
||||
const filterLevels = ['Off', 'No Role', 'Everyone'];
|
||||
const verificationLevels = ['None', 'Low', 'Medium', '(╯°□°)╯︵ ┻━┻', '┻━┻ ミヽ(ಠ益ಠ)ノ彡┻━┻'];
|
||||
|
||||
module.exports = class GuildInfoCommand extends Command {
|
||||
constructor(client) {
|
||||
|
||||
Reference in New Issue
Block a user