mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Fix bulk message deletion logging. Remove !clean command and response after a short delay.
This commit is contained in:
parent
a93f25d638
commit
9687359105
2 changed files with 25 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue