mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 00:06:42 +02:00
Fix this
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = class PortalSendCommand extends Command {
|
||||
|
||||
async run(msg, args) {
|
||||
const { message } = args;
|
||||
const channels = this.client.channels.filter(c => c.guild.id !== msg.guild.id);
|
||||
const channels = this.client.channels.filter(c => c.type === 'text' && c.guild.id !== msg.guild.id);
|
||||
const channel = filterTopics(channels, 'portal').random();
|
||||
if (!channel) return msg.say('Aww... No channel has an open portal...');
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user