mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 04:45:02 +00:00
Migrate Starboard to new Plugin structure
This commit is contained in:
parent
a3d0ec03d9
commit
599a504b17
12 changed files with 443 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
|||
import { starboardEvt } from "../types";
|
||||
|
||||
export const StarboardReactionRemoveEvt = starboardEvt({
|
||||
event: "messageReactionRemove",
|
||||
|
||||
async listener(meta) {
|
||||
await meta.pluginData.state.starboardReactions.deleteStarboardReaction(meta.args.message.id, meta.args.userID);
|
||||
},
|
||||
});
|
||||
|
||||
export const StarboardReactionRemoveAllEvt = starboardEvt({
|
||||
event: "messageReactionRemoveAll",
|
||||
|
||||
async listener(meta) {
|
||||
await meta.pluginData.state.starboardReactions.deleteAllStarboardReactionsForMessageId(meta.args.message.id);
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue