mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 18:25:03 +00:00
half the number of errors
This commit is contained in:
parent
7c5e6eb91f
commit
1dca8c4447
261 changed files with 760 additions and 1023 deletions
|
@ -1,4 +1,4 @@
|
|||
import { escapeCodeBlock, MessageEditOptions, MessageOptions } from "discord.js";
|
||||
import { escapeCodeBlock, MessageEditOptions, MessageCreateOptions } from "discord.js";
|
||||
import { GuildPluginData } from "knub";
|
||||
import moment from "moment-timezone";
|
||||
import { CaseTypes } from "../../../data/CaseTypes";
|
||||
|
@ -14,7 +14,7 @@ export async function getCaseEmbed(
|
|||
caseOrCaseId: Case | number,
|
||||
requestMemberId?: string,
|
||||
noOriginalCaseLink?: boolean,
|
||||
): Promise<MessageOptions & MessageEditOptions> {
|
||||
): Promise<MessageCreateOptions & MessageEditOptions> {
|
||||
const theCase = await pluginData.state.cases.with("notes").find(resolveCaseId(caseOrCaseId));
|
||||
if (!theCase) {
|
||||
throw new Error("Unknown case");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue