3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +00:00

Fix bulk message deletion logging. Remove !clean command and response after a short delay.

This commit is contained in:
Dragory 2018-11-24 19:33:29 +02:00
parent 90e0e3b8ec
commit 2b333409a7
2 changed files with 25 additions and 5 deletions

View file

@ -186,10 +186,12 @@ export class GuildSavedMessages extends BaseRepository {
.andWhere("id IN (:ids)", { ids })
.execute();
return this.messages
const deleted = await this.messages
.createQueryBuilder()
.where("id IN (:ids)", { ids })
.getMany();
this.events.emit("deleteBulk", [deleted]);
}
async saveEdit(id, newData: ISavedMessageData) {