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

Update ArchiveCmd.ts

This commit is contained in:
srqc 2023-02-09 19:47:29 -05:00 committed by GitHub
parent 20e0df4d4a
commit 271729325d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,8 +11,6 @@ export async function archiveMessages(
pluginData: GuildPluginData<UtilityPluginType>,
messagesToArchive: SavedMessage[],
) {
messagesToArchive = Array.from(messagesToArchive).sort((a, b) => (a.posted_at > b.posted_at ? 1 : -1));
const archiveId = await pluginData.state.archives.createFromSavedMessages(messagesToArchive, pluginData.guild);
const baseUrl = getBaseUrl(pluginData);