mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
Update ArchiveCmd.ts
This commit is contained in:
parent
5ccc0f4cfc
commit
2277e44588
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ 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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue