mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-18 07:35:02 +00:00
Message archive formatting tweaks and fixes; only emit deleteBulk event from SavedMessages if any messages were actually marked as deleted
This commit is contained in:
parent
95ae2ff9ca
commit
29782bbfda
5 changed files with 36 additions and 26 deletions
|
@ -326,8 +326,7 @@ export class LogsPlugin extends Plugin {
|
|||
// Uses events from savesMessages
|
||||
async onMessageDeleteBulk(savedMessages: SavedMessage[]) {
|
||||
const channel = this.guild.channels.get(savedMessages[0].channel_id);
|
||||
const user = this.bot.users.get(savedMessages[0].user_id);
|
||||
const archiveId = await this.archives.createFromSavedMessages(savedMessages, this.guild, channel, user);
|
||||
const archiveId = await this.archives.createFromSavedMessages(savedMessages, this.guild);
|
||||
const baseUrl = this.knub.getGlobalConfig().url;
|
||||
|
||||
this.guildLogs.log(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue