const channel = await interaction.channel?.awaitMessages({ filter: m => { console.log(m.content); console.log(m.mentions.channels.toJSON()); if (m.author.id != interaction.user.id) return false; let ch: GuildChannel; if (m.mentions.channels.size <= 1) { ch = m.mentions.channels.first()! as GuildChannel; } else { ch = m.guild?.channels.cache.get(m.content.trim()) as GuildChannel; } if (ch.type != ChannelType.GuildText) return false; if (!ch) return false; return true; }, time: 60000, max: 1, errors: ['time'], });