From 9458987988dbf4af37b84aa2ce3117a6b9094ade Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 28 Sep 2025 23:54:35 +0200 Subject: [PATCH] Oops, forgot to register extension --- src/util/util/extensions/Array.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/util/extensions/Array.ts b/src/util/util/extensions/Array.ts index f2a69840..32845b0c 100644 --- a/src/util/util/extensions/Array.ts +++ b/src/util/util/extensions/Array.ts @@ -61,3 +61,7 @@ if (!Array.prototype.single) Array.prototype.single = function (this: T[], filter: (elem: T) => boolean) { return single(this, filter); }; +if (!Array.prototype.forEachAsync) + Array.prototype.forEachAsync = function (this: T[], callback: (elem: T, index: number, array: T[]) => Promise) { + return forEachAsync(this, callback); + };