mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Remove RichEmbed in favour of MessageEmbed (#1584)
* remove RichEmbed in favour of MessageEmbed * fix provider typo
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const path = require('path');
|
||||
const Util = require('../util/Util');
|
||||
const Embed = require('./MessageEmbed');
|
||||
|
||||
/**
|
||||
* Represents a webhook.
|
||||
@@ -124,6 +125,8 @@ class Webhook {
|
||||
}
|
||||
options.content = content;
|
||||
|
||||
if (options.embeds) options.embeds = options.embeds.map(embed => new Embed(embed)._apiTransform());
|
||||
|
||||
if (options.file) {
|
||||
if (options.files) options.files.push(options.file);
|
||||
else options.files = [options.file];
|
||||
|
||||
Reference in New Issue
Block a user