This commit is contained in:
Daniel Odendahl Jr
2017-09-09 15:11:43 +00:00
parent 2fa64b8515
commit a063f06709
+10
View File
@@ -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',