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

@@ -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)) {