3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-14 13:55:03 +00:00

Add pagination to !cases -mod

This commit is contained in:
Dragory 2020-12-15 15:18:08 +02:00
parent 0c6ec9cef0
commit 5056b4376a
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
5 changed files with 87 additions and 31 deletions

View file

@ -14,6 +14,8 @@ import { trimPluginDescription } from "../../utils";
import { getCaseSummary } from "./functions/getCaseSummary";
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
import { mapToPublicFn } from "../../pluginUtils";
import { getTotalCasesByMod } from "./functions/getTotalCasesByMod";
import { getRecentCasesByMod } from "./functions/getRecentCasesByMod";
const defaultOptions = {
config: {
@ -64,6 +66,9 @@ export const CasesPlugin = zeppelinGuildPlugin<CasesPluginType>()("cases", {
};
},
getTotalCasesByMod: mapToPublicFn(getTotalCasesByMod),
getRecentCasesByMod: mapToPublicFn(getRecentCasesByMod),
getCaseEmbed: mapToPublicFn(getCaseEmbed),
getCaseSummary: mapToPublicFn(getCaseSummary),
},