mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
Beep
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const types = {
|
||||
dm: 'DM',
|
||||
group: 'Group DM',
|
||||
text: 'Text Channel',
|
||||
voice: 'Voice Channel',
|
||||
category: 'Channel Category',
|
||||
unknown: 'Unknown'
|
||||
};
|
||||
|
||||
module.exports = class ChannelInfoCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -34,6 +42,8 @@ module.exports = class ChannelInfoCommand extends Command {
|
||||
channel.nsfw ? 'Yes' : 'No', true)
|
||||
.addField('❯ Category',
|
||||
channel.parent ? channel.parent.name : 'None', true)
|
||||
.addField('❯ Type',
|
||||
types[channel.type], true)
|
||||
.addField('❯ Creation Date',
|
||||
channel.createdAt.toDateString(), true)
|
||||
.addField('❯ Topic',
|
||||
|
||||
Reference in New Issue
Block a user