mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
Upgrade DJS, fix bugs
This commit is contained in:
parent
0822fc15e5
commit
be71357ff9
17 changed files with 123 additions and 66 deletions
|
@ -62,7 +62,7 @@ export const ArchiveChannelCmd = channelArchiverCmd({
|
|||
const messagesToFetch = Math.min(MAX_MESSAGES_PER_FETCH, maxMessagesToArchive - archivedMessages);
|
||||
const messages = (await args.channel.messages.fetch({
|
||||
limit: messagesToFetch,
|
||||
before: previousId,
|
||||
before: previousId as Snowflake,
|
||||
})) as Collection<Snowflake, Message>;
|
||||
if (messages.size === 0) break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue