mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Fix richEmbed attachFile
This commit is contained in:
@@ -79,6 +79,8 @@ class TextBasedChannel {
|
|||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.embed && options.embed.file) options.file = options.embed.file;
|
||||||
|
|
||||||
// backward compat
|
// backward compat
|
||||||
if (options.file) {
|
if (options.file) {
|
||||||
if (options.files) options.files.push(options.file);
|
if (options.files) options.files.push(options.file);
|
||||||
|
|||||||
Reference in New Issue
Block a user