mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-20 08:15:03 +00:00
14 lines
404 B
TypeScript
14 lines
404 B
TypeScript
import { reactionRolesEvt } from "../types";
|
|
|
|
export const MessageDeletedEvt = reactionRolesEvt({
|
|
event: "messageDelete",
|
|
allowBots: true,
|
|
allowSelf: true,
|
|
|
|
async listener(meta) {
|
|
const pluginData = meta.pluginData;
|
|
|
|
await pluginData.state.buttonRoles.removeAllForMessageId(meta.args.message.id);
|
|
await pluginData.state.reactionRoles.removeFromMessage(meta.args.message.id);
|
|
},
|
|
});
|