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

@ -0,0 +1,6 @@
import { GuildPluginData } from "knub";
import { CasesPluginType } from "../types";
export function getTotalCasesByMod(pluginData: GuildPluginData<CasesPluginType>, modId: string): Promise<number> {
return pluginData.state.cases.getTotalCasesByModId(modId);
}