diff --git a/commands/portal/portal-status.js b/commands/portal/portal-status.js index 225534dc..be56acad 100644 --- a/commands/portal/portal-status.js +++ b/commands/portal/portal-status.js @@ -12,7 +12,7 @@ module.exports = class PortalStatusCommand extends Command { run(msg) { const channels = this.client.provider.get('global', 'portals', []); - const local = msg.channel.type === 'text' ? channels.filter(c => msg.guild.channels.has(c.id)).length : 0; + const local = msg.channel.type === 'text' ? channels.filter(c => msg.guild.channels.has(c)).length : 0; return msg.say( `There are currently **${channels.length}** open portals${msg.channel.type === 'text' ? `, **${local}** of which are in this server.`