From a063f067097edb9c1dbfa37b8fa2c7cfba6b1657 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 9 Sep 2017 15:11:43 +0000 Subject: [PATCH] Beep --- commands/guild-info/channel-info.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/commands/guild-info/channel-info.js b/commands/guild-info/channel-info.js index c7f5dca6..0e88593e 100644 --- a/commands/guild-info/channel-info.js +++ b/commands/guild-info/channel-info.js @@ -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',