Webpack build for branch 11.3-dev: 1d9edec567

This commit is contained in:
Travis CI 2018-07-08 19:46:01 +00:00
parent b68cce8ee5
commit aa9317e87c
2 changed files with 7 additions and 2 deletions

View file

@ -5762,8 +5762,13 @@ class TextBasedChannel {
options = {};
}
const { reply } = options;
if (options instanceof Attachment) options = { files: [options.file] };
if (options instanceof RichEmbed) options = { embed: options };
if (options instanceof RichEmbed) {
if (options.reply) options.reply = undefined;
options = { embed: options };
}
options.reply = reply;
if (options.embed && options.embed.file) {
if (options.files) options.files.push(options.embed.file);

File diff suppressed because one or more lines are too long