style: run prettier

Signed-off-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
EvolutionX-10
2023-09-02 06:12:08 +00:00
committed by GitHub Actions
parent 0812117ba0
commit d307d4dc45

View File

@@ -44,7 +44,7 @@ export class ExpiryMap<K, V> extends Map<K, V> {
public readonly expiry: number;
constructor(
expiry: number = Infinity,
iterable: [K, V][] | ReadonlyMap<K, V> = []
iterable: [K, V][] | ReadonlyMap<K, V> = [],
) {
super(iterable);
this.expiry = expiry;
@@ -64,7 +64,7 @@ export const map = new ExpiryMap<string, number>();
function parseCooldown(
location: CooldownLocation,
cooldown: CooldownString
cooldown: CooldownString,
): Cooldown {
const [actions, seconds] = cooldown.split("/").map((s) => Number(s));
@@ -112,7 +112,7 @@ function add(
| [CooldownLocation | keyof typeof CooldownLocation, CooldownString]
| Cooldown
>,
message?: CooldownResponse
message?: CooldownResponse,
) {
const raw = items.map((c) => {
if (!Array.isArray(c)) return c;