From 89f45b199e6f42c61be4be954e75626d5edd6975 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 18 Jul 2018 13:11:12 -0400 Subject: [PATCH] Fix portal-send not allowing same guild --- 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 a9a61ba6..e7b1239d 100644 --- a/commands/text-edit/portal-send.js +++ b/commands/text-edit/portal-send.js @@ -24,7 +24,7 @@ module.exports = class PortalSendCommand extends Command { let channels = this.client.channels.filter( channel => channel.type === 'text' && channel.topic && channel.topic.includes('') ); - if (msg.channel.type === 'text') channels = channels.filter(channel => !msg.guild.channels.has(channel)); + if (msg.channel.type === 'text') channels = channels.filter(channel => !msg.guild.channels.has(channel.id)); if (!channels.size) return msg.reply('No channels have an open portal...'); const channel = channels.random(); try {