mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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.`
|
||||
|
||||
Reference in New Issue
Block a user