如何通过对嵌入做出反应来创建语音通道?

How to create a voice channel by reacting on embed?

我正在尝试使用此代码创建一个嵌入,如果您对此做出反应,将在服务器上创建一个特定的语音通道。 这与角色菜单非常相似,但它不会给你一个角色,它会创建一个频道。

代码运行正常,但当您对嵌入做出反应时,机器人什么都不做。

module.exports = {
    name: 'cc',
    description: 'Help!',
    execute(message) {
    const embed = {"image": {"url": `${message.author.displayAvatarURL}`}}
    message.channel.send({embed})
    .then((message) => { message.react("❤") })
    .then(() => {
        const filter = (reaction, user) => reaction.emoji.name === "❤" && user.id === message.author.id;
        const collectorForU = message.createReactionCollector(filter, {time: 1000/*time in ms*/});
        collectorForU.on("collect", () => {message.guild.createChannel("╔═════ஜ۞ஜ═════╗", "voice")})
})  
}
};

控制台没有报错

反应收集器在收集任何东西之前就过期了; time 选项设置为 1 秒。