3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

removed unnecessary assertion

This commit is contained in:
almeidx 2021-07-28 23:15:40 +01:00
parent 88f53b4af9
commit 4047b7f921
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664

View file

@ -60,10 +60,10 @@ export const ArchiveChannelCmd = channelArchiverCmd({
while (archivedMessages < maxMessagesToArchive) {
const messagesToFetch = Math.min(MAX_MESSAGES_PER_FETCH, maxMessagesToArchive - archivedMessages);
const messages = (await args.channel.messages.fetch({
const messages = await args.channel.messages.fetch({
limit: messagesToFetch,
before: previousId as Snowflake,
})) as Collection<Snowflake, Message>;
});
if (messages.size === 0) break;
for (const message of messages.values()) {