diff --git a/src/DiscordAdapter.mjs b/src/DiscordAdapter.mjs index 3d7f03e..746b416 100644 --- a/src/DiscordAdapter.mjs +++ b/src/DiscordAdapter.mjs @@ -77,7 +77,7 @@ class DiscordAdapter extends Adapter { return a }) while(files.length > 0) { - const batch = files.splice(-files.length, DISCORD_ATTACHMENT_LIMIT) + const batch = files.splice(0, DISCORD_ATTACHMENT_LIMIT) tasks.push(delegate({files: batch})) } } else {