mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
Removed deprecated file option from MessageOptions (#1614)
This commit is contained in:
parent
d266804953
commit
ee3a2415e4
1 changed files with 3 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue