mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
13 lines
320 B
TypeScript
13 lines
320 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.reactionRoles.removeFromMessage(meta.args.message.id);
|
|
},
|
|
});
|