mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-27 19: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,8 +1,7 @@
|
|||
import { GuildAuditLogs, User } from "discord.js";
|
||||
import { AuditLogEvent, User } from "discord.js";
|
||||
import { userToTemplateSafeUser } from "../../../utils/templateSafeObjects";
|
||||
import { CaseTypes } from "../../../data/CaseTypes";
|
||||
import { Case } from "../../../data/entities/Case";
|
||||
import { LogType } from "../../../data/LogType";
|
||||
import { resolveUser, UnknownUser } from "../../../utils";
|
||||
import { CasesPlugin } from "../../Cases/CasesPlugin";
|
||||
import { clearIgnoredEvents } from "../functions/clearIgnoredEvents";
|
||||
|
@ -24,7 +23,11 @@ export const CreateBanCaseOnManualBanEvt = modActionsEvt({
|
|||
return;
|
||||
}
|
||||
|
||||
const relevantAuditLogEntry = await findMatchingAuditLogEntry(pluginData.guild, "MEMBER_BAN_ADD", user.id);
|
||||
const relevantAuditLogEntry = await findMatchingAuditLogEntry(
|
||||
pluginData.guild,
|
||||
AuditLogEvent.MemberBanAdd,
|
||||
user.id,
|
||||
);
|
||||
|
||||
const casesPlugin = pluginData.getPlugin(CasesPlugin);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue