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 {