【问题标题】:RichEmbed is not defined error how to fixRichEmbed 未定义错误如何解决
【发布时间】:2020-10-14 23:40:47
【问题描述】:

所以,我已经学会了如何从一个名为“CodeLyon”的 youtube 频道制作一个不和谐的机器人,并且出现错误:enter image description here

有人知道如何解决吗? (为了解决这个问题,我找了很久也没找到)

【问题讨论】:

    标签: javascript bots discord discord.js embed


    【解决方案1】:

    如果您使用的是 Discord JS V12,则为:

    const discord = require("discord.js");
    const Embed = new discord.MessageEmbed();;
    

    否则就是:

    const discord = require("discord.js");
    const Embed = new discord.RichEmbed();;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-07-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-22
      • 2021-04-27
      相关资源
      最近更新 更多