From 2237749d2937c662fbe126049bad2ee86c7d1d7e Mon Sep 17 00:00:00 2001 From: Crawl Date: Thu, 16 Mar 2017 17:07:11 +0100 Subject: [PATCH] Fix richEmbed attachFile --- src/structures/interface/TextBasedChannel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/structures/interface/TextBasedChannel.js b/src/structures/interface/TextBasedChannel.js index 391467d21..06394b59d 100644 --- a/src/structures/interface/TextBasedChannel.js +++ b/src/structures/interface/TextBasedChannel.js @@ -79,6 +79,8 @@ class TextBasedChannel { options = {}; } + if (options.embed && options.embed.file) options.file = options.embed.file; + // backward compat if (options.file) { if (options.files) options.files.push(options.file);