Ofir7041
Ofir7041

Reputation: 1

RichEmbed is not defined error how to fix

so, i have learn how to make a discord bot from a youtube channel which called "CodeLyon" and there is the error:enter image description here

do someone know how to fix it? (I searched a long time for solving this problem and i didnt find anything)

Upvotes: 0

Views: 139

Answers (1)

Jakye
Jakye

Reputation: 6625

If you are using Discord JS V12 it's:

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

Otherwise, it is:

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

Upvotes: 2

Related Questions