From ee3a2415e4fcb5551eade893b546faefa2caa11d Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Tue, 4 Jul 2017 00:06:29 +0200 Subject: [PATCH] Removed deprecated file option from MessageOptions (#1614) --- src/structures/interfaces/TextBasedChannel.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index c928629e9..3cc4d3d7e 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -82,11 +82,9 @@ class TextBasedChannel { if (!options.content) options.content = content; - if (options.embed && options.embed.file) options.file = options.embed.file; - - if (options.file) { - if (options.files) options.files.push(options.file); - else options.files = [options.file]; + if (options.embed && options.embed.file) { + if (options.files) options.files.push(options.embed.file); + else options.files = [options.embed.file]; } if (options.files) {