Discord JS: I want to send an embed to the channel named “general” in every guild the bot is in and I'm getting an error

后端 未结 0 1735
借酒劲吻你
借酒劲吻你 2021-01-02 05:31
client.guilds.cache.forEach((guild) => {
    console.log(guild.name);
    try {
    guild.channels.cache.find((x) => x.name == \'general\').send(embed);
    }          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题