mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Fix richEmbed attachFile
This commit is contained in:
parent
6983798820
commit
2237749d29
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue