embed error
dongsu8142 opened this issue · comments
error: TS2740 [ERROR]: Type '{ title: string; }' is missing the following properties from type 'MessageEmbed': getTitle, setTitle, getType, setType, and 20 more.
embed: { title: 'hello' }
example I get this error
Could you provide the code that you worked with? Was it just from the example?
yes example
Got it. Just tried it now and it seems to be an error where it was type checking with a Message Embed class. Will fix this soon. For now you can just create a MessageEmbed the same way you would in Discord.JS v12.
Please change it quickly.
I've updated the README.md example, for the time being please use MessageEmbed class to send embeds. Thank you for raising this issue.