From 7bb886770f6a82fdc9ef8f1e36d2d333c1b3866b Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 22 Aug 2017 00:50:56 +0000 Subject: [PATCH] Fix this --- commands/text-edit/portal-send.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/text-edit/portal-send.js b/commands/text-edit/portal-send.js index 04c7313d..6467af21 100644 --- a/commands/text-edit/portal-send.js +++ b/commands/text-edit/portal-send.js @@ -26,7 +26,7 @@ module.exports = class PortalSendCommand extends Command { async run(msg, args) { const { message } = args; - const channels = this.client.channels.filter(c => c.guild.id !== msg.guild.id); + const channels = this.client.channels.filter(c => c.type === 'text' && c.guild.id !== msg.guild.id); const channel = filterTopics(channels, 'portal').random(); if (!channel) return msg.say('Aww... No channel has an open portal...'); try {