mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +00:00
12 lines
346 B
TypeScript
12 lines
346 B
TypeScript
import { locateUserEvt } from "../types";
|
|
|
|
export const GuildBanRemoveAlertsEvt = locateUserEvt({
|
|
event: "guildBanAdd",
|
|
|
|
async listener(meta) {
|
|
const alerts = await meta.pluginData.state.alerts.getAlertsByUserId(meta.args.ban.user.id);
|
|
alerts.forEach((alert) => {
|
|
meta.pluginData.state.alerts.delete(alert.id);
|
|
});
|
|
},
|
|
});
|