mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 12:40:50 +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 };
|
const options = index === list.length ? { tts, embed } : { tts };
|
||||||
chan.send(list[index], options, index === list.length ? file : null).then((message) => {
|
chan.send(list[index], options, index === list.length ? file : null).then((message) => {
|
||||||
messages.push(message);
|
messages.push(message);
|
||||||
if (index >= list.length) return resolve(messages);
|
if (index >= list.length - 1) return resolve(messages);
|
||||||
return sendChunk(list, ++index);
|
return sendChunk(list, ++index);
|
||||||
});
|
});
|
||||||
}(content, 0));
|
}(content, 0));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue