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