forgot a file

This commit is contained in:
Erik 2023-12-08 00:30:43 +02:00
parent eb0a63a4b9
commit 07eec3cd9d

View File

@ -499,7 +499,6 @@ class ModerationManager implements Initialisable
points, expiration, timestamp: response.infraction.timestamp, id: response.infraction.id
});
return result;
}
async _handleArguments (invoker: InvokerWrapper, targets: ModerationTargets, args: {[key: string]: CommandOption | undefined})
@ -614,9 +613,7 @@ class ModerationManager implements Initialisable
}, callBackAt - currentDate),
infraction
});
}
}
async removeCallback (infraction: InfractionClass | InfractionJSON, updateCase = false)
@ -668,7 +665,6 @@ class ModerationManager implements Initialisable
async findLatestInfraction (type: InfractionType, target: ModerationTarget)
{
const callback = this.#callbacks.filter((c) =>
{
return c.infraction.type === type
@ -683,7 +679,6 @@ class ModerationManager implements Initialisable
{ sort: { timestamp: -1 } }
);
return result || null;
}
}