mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +00:00
parent
2beb77ab5c
commit
448c93615b
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ class RESTMethods {
|
|||
const options = index === list.length ? { tts, embed } : { tts };
|
||||
chan.send(list[index], options, index === list.length ? file : null).then((message) => {
|
||||
messages.push(message);
|
||||
if (index >= list.length) return resolve(messages);
|
||||
if (index >= list.length - 1) return resolve(messages);
|
||||
return sendChunk(list, ++index);
|
||||
});
|
||||
}(content, 0));
|
||||
|
|
|
|||
Loading…
Reference in a new issue