fixed MessageEmbed#timestamp and changed attachFile to attachFiles (#1670)

* fixed MessageEmbed#timestamp and changed attachFile to attachFiles
as well as a few doc changes

* Embed#files shouldn't be a nested array
This commit is contained in:
SpaceEEC
2017-07-16 14:11:49 +02:00
committed by Crawl
parent a965b3709a
commit 8580380541
3 changed files with 12 additions and 13 deletions

View File

@@ -82,9 +82,9 @@ class TextBasedChannel {
if (!options.content) options.content = content;
if (options.embed && options.embed.file) {
if (options.files) options.files.push(options.embed.file);
else options.files = [options.embed.file];
if (options.embed && options.embed.files) {
if (options.files) options.files = options.files.concat(options.embed.files);
else options.files = options.embed.files;
}
if (options.files) {