mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Migrate AutoDelete to new Plugin structure
This commit is contained in:
parent
ebcb28261b
commit
e682e9b8c5
9 changed files with 194 additions and 0 deletions
10
backend/src/plugins/AutoDelete/util/onMessageDeleteBulk.ts
Normal file
10
backend/src/plugins/AutoDelete/util/onMessageDeleteBulk.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { AutoDeletePluginType } from "../types";
|
||||
import { PluginData } from "knub";
|
||||
import { SavedMessage } from "src/data/entities/SavedMessage";
|
||||
import { onMessageDelete } from "./onMessageDelete";
|
||||
|
||||
export function onMessageDeleteBulk(pluginData: PluginData<AutoDeletePluginType>, messages: SavedMessage[]) {
|
||||
for (const msg of messages) {
|
||||
onMessageDelete(pluginData, msg);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue