mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
Beep
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
const Command = require('../../structures/Command');
|
const Command = require('../../structures/Command');
|
||||||
const { MessageEmbed } = require('discord.js');
|
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 {
|
module.exports = class ChannelInfoCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -34,6 +42,8 @@ module.exports = class ChannelInfoCommand extends Command {
|
|||||||
channel.nsfw ? 'Yes' : 'No', true)
|
channel.nsfw ? 'Yes' : 'No', true)
|
||||||
.addField('❯ Category',
|
.addField('❯ Category',
|
||||||
channel.parent ? channel.parent.name : 'None', true)
|
channel.parent ? channel.parent.name : 'None', true)
|
||||||
|
.addField('❯ Type',
|
||||||
|
types[channel.type], true)
|
||||||
.addField('❯ Creation Date',
|
.addField('❯ Creation Date',
|
||||||
channel.createdAt.toDateString(), true)
|
channel.createdAt.toDateString(), true)
|
||||||
.addField('❯ Topic',
|
.addField('❯ Topic',
|
||||||
|
|||||||
Reference in New Issue
Block a user