From e88a85f1af0d4d4ab0378ef2252dfbf43dfa1b6b Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 17 Feb 2018 22:18:01 +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 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.`