mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Using a traditional for loop rather than a for in loop for options.files (#1461)
This commit is contained in:
@@ -88,7 +88,7 @@ class TextBasedChannel {
|
||||
}
|
||||
|
||||
if (options.files) {
|
||||
for (const i in options.files) {
|
||||
for (let i = 0; i < options.files.length; i++) {
|
||||
let file = options.files[i];
|
||||
if (typeof file === 'string') file = { attachment: file };
|
||||
if (!file.name) {
|
||||
|
||||
Reference in New Issue
Block a user