forked from Galactic/galactic-bot
forgot a file
This commit is contained in:
parent
eb0a63a4b9
commit
07eec3cd9d
@ -499,7 +499,6 @@ class ModerationManager implements Initialisable
|
|||||||
points, expiration, timestamp: response.infraction.timestamp, id: response.infraction.id
|
points, expiration, timestamp: response.infraction.timestamp, id: response.infraction.id
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async _handleArguments (invoker: InvokerWrapper, targets: ModerationTargets, args: {[key: string]: CommandOption | undefined})
|
async _handleArguments (invoker: InvokerWrapper, targets: ModerationTargets, args: {[key: string]: CommandOption | undefined})
|
||||||
@ -614,9 +613,7 @@ class ModerationManager implements Initialisable
|
|||||||
}, callBackAt - currentDate),
|
}, callBackAt - currentDate),
|
||||||
infraction
|
infraction
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async removeCallback (infraction: InfractionClass | InfractionJSON, updateCase = false)
|
async removeCallback (infraction: InfractionClass | InfractionJSON, updateCase = false)
|
||||||
@ -668,7 +665,6 @@ class ModerationManager implements Initialisable
|
|||||||
|
|
||||||
async findLatestInfraction (type: InfractionType, target: ModerationTarget)
|
async findLatestInfraction (type: InfractionType, target: ModerationTarget)
|
||||||
{
|
{
|
||||||
|
|
||||||
const callback = this.#callbacks.filter((c) =>
|
const callback = this.#callbacks.filter((c) =>
|
||||||
{
|
{
|
||||||
return c.infraction.type === type
|
return c.infraction.type === type
|
||||||
@ -683,7 +679,6 @@ class ModerationManager implements Initialisable
|
|||||||
{ sort: { timestamp: -1 } }
|
{ sort: { timestamp: -1 } }
|
||||||
);
|
);
|
||||||
return result || null;
|
return result || null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user