mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 23:05:04 +02:00
Fix portal-send bug
This commit is contained in:
@@ -29,9 +29,7 @@ module.exports = class PortalSendCommand extends Command {
|
||||
let channels = this.client.channels.cache.filter(
|
||||
channel => channel.guild && channel.topic && channel.topic.includes('<xiao:portal>')
|
||||
);
|
||||
if (channel.guild) {
|
||||
channels = channels.filter(channel => !msg.guild.channels.cache.has(channel.id));
|
||||
}
|
||||
if (msg.guild) channels = channels.filter(channel => !msg.guild.channels.cache.has(channel.id));
|
||||
if (message.toLowerCase() === 'count') {
|
||||
return msg.say(`**${this.portalEmoji} ${channels.size}** currently open portals.`);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "113.7.0",
|
||||
"version": "113.7.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user