Remove RichEmbed in favour of MessageEmbed (#1584)

* remove RichEmbed in favour of MessageEmbed

* fix provider typo
This commit is contained in:
Drahcirius
2017-07-03 18:53:22 -04:00
committed by Crawl
parent c42e53d70d
commit b1d9084345
7 changed files with 63 additions and 249 deletions

View File

@@ -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];