3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-14 21:31:50 +00:00

Fix archive URL for bulk deletions

This commit is contained in:
Dragory 2020-07-29 00:45:38 +03:00
parent e4d81575f6
commit a4e30198c0
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -7,7 +7,7 @@ import { getBaseUrl } from "src/pluginUtils";
export async function onMessageDeleteBulk(pluginData: PluginData<LogsPluginType>, savedMessages: SavedMessage[]) {
const channel = pluginData.guild.channels.get(savedMessages[0].channel_id);
const archiveId = await pluginData.state.archives.createFromSavedMessages(savedMessages, pluginData.guild);
const archiveUrl = pluginData.state.archives.getUrl(getBaseUrl, archiveId);
const archiveUrl = pluginData.state.archives.getUrl(getBaseUrl(pluginData), archiveId);
pluginData.state.guildLogs.log(
LogType.MESSAGE_DELETE_BULK,