mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user