From 76cbe8dc8b232cf9a062c05d7cd8c10456a22c81 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 17 Feb 2018 22:13:59 +0000 Subject: [PATCH] fix --- commands/portal/portal-status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/portal/portal-status.js b/commands/portal/portal-status.js index 2ef8176a..b2c7e26a 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)).size : null; + const local = msg.channel.type === 'text' ? channels.filter(c => !msg.guild.channels.has(c.id)).length : null; return msg.say( `There are currently **${channels.length}** open portals${msg.channel.type === 'text' ? `, **${local}** of which are in this server.`