3
0
Fork 0
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:
Dark 2020-07-23 02:06:50 +02:00
parent ebcb28261b
commit e682e9b8c5
9 changed files with 194 additions and 0 deletions

View 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);
}
}