3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Migrate ModActions to new Plugin structure !!mutes dont work!!

This commit is contained in:
Dark 2020-07-24 02:25:33 +02:00
parent ebcb28261b
commit fd56664984
29 changed files with 1213 additions and 16 deletions

View file

@ -9,6 +9,7 @@ import { Case } from "../../data/entities/Case";
import { postCaseToCaseLogChannel } from "./functions/postToCaseLogChannel";
import { CaseTypes } from "../../data/CaseTypes";
import { getCaseTypeAmountForUserId } from "./functions/getCaseTypeAmountForUserId";
import { getCaseEmbed } from "./functions/getCaseEmbed";
const defaultOptions = {
config: {
@ -45,6 +46,12 @@ export const CasesPlugin = zeppelinPlugin<CasesPluginType>()("cases", {
return getCaseTypeAmountForUserId(pluginData, userID, type);
};
},
getCaseEmbed(pluginData) {
return (caseOrCaseId: Case | number) => {
return getCaseEmbed(pluginData, caseOrCaseId);
};
},
},
onLoad(pluginData) {