diff --git a/assets/openapi.json b/assets/openapi.json index 85292bc33..13e0249ab 100644 Binary files a/assets/openapi.json and b/assets/openapi.json differ diff --git a/assets/schemas.json b/assets/schemas.json index 75c9d9042..9b3dd7bea 100644 Binary files a/assets/schemas.json and b/assets/schemas.json differ diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts index 57960ecda..9c7ddb571 100644 --- a/src/util/entities/Channel.ts +++ b/src/util/entities/Channel.ts @@ -197,7 +197,7 @@ export class Channel extends BaseClass { skipEventEmit?: boolean; skipNameChecks?: boolean; }, - ) { + ): Promise { if (!opts?.skipPermissionCheck) { // Always check if user has permission first const permissions = await getPermission(user_id, channel.guild_id); @@ -281,7 +281,8 @@ export class Channel extends BaseClass { // total_message_sent: 0, }; - const ret = Channel.create(channel); + // TODO: figure out why the generic is required here + const ret = Channel.create(channel); await Promise.all([ ret.save(), diff --git a/src/util/util/extensions/Array.test.ts b/src/util/util/extensions/Array.test.ts deleted file mode 100644 index 6984dfdbe..000000000 --- a/src/util/util/extensions/Array.test.ts +++ /dev/null @@ -1,9 +0,0 @@ -import moduleAlias from "module-alias"; -moduleAlias(); -import "./Array"; -import { describe, it } from "node:test"; -import assert from "node:assert/strict"; - -describe("Array extensions", () => { - // -}); diff --git a/src/util/util/extensions/Array.ts b/src/util/util/extensions/Array.ts index f17e8650d..f9cb2fc57 100644 --- a/src/util/util/extensions/Array.ts +++ b/src/util/util/extensions/Array.ts @@ -16,14 +16,6 @@ along with this program. If not, see . */ -declare global { - interface Array { - /** - * @deprecated never use, idk why but I can't get rid of this without errors - */ - remove(h: T): never; - } -} /* https://stackoverflow.com/a/50636286 */ export function arrayPartition(array: T[], filter: (elem: T) => boolean): [T[], T[]] { const pass: T[] = [], @@ -38,5 +30,3 @@ export function arrayRemove(array: T[], item: T): void { array.splice(index, 1); } } - -// register extensions