mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Remove RichEmbed in favour of MessageEmbed (#1584)
* remove RichEmbed in favour of MessageEmbed * fix provider typo
This commit is contained in:
@@ -384,7 +384,9 @@ class Message {
|
||||
|
||||
if (typeof content !== 'undefined') content = Util.resolveString(content);
|
||||
|
||||
const { embed, code, reply } = options;
|
||||
let { embed, code, reply } = options;
|
||||
|
||||
if (embed) embed = new Embed(embed)._apiTransform();
|
||||
|
||||
// Wrap everything in a code block
|
||||
if (typeof code !== 'undefined' && (typeof code !== 'boolean' || code === true)) {
|
||||
|
||||
Reference in New Issue
Block a user