diff --git a/.vscode/settings.json b/.vscode/settings.json index 00ad71f..454aa8b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ -{ - "typescript.tsdk": "node_modules\\typescript\\lib" -} \ No newline at end of file +{ + "typescript.tsdk": "node_modules/typescript/lib" +} diff --git a/src/collection.ts b/src/collection.ts index 771bf12..ae66875 100644 --- a/src/collection.ts +++ b/src/collection.ts @@ -259,7 +259,7 @@ export class LimitedCollection { if (this.size > this.options.limit) { const iter = this.data.keys(); while (this.size > this.options.limit) { - const keyValue = iter.next().value; + const keyValue = iter.next().value!; this.delete(keyValue); } } diff --git a/src/structures/Interaction.ts b/src/structures/Interaction.ts index 3e8c61e..36cf1eb 100644 --- a/src/structures/Interaction.ts +++ b/src/structures/Interaction.ts @@ -143,9 +143,9 @@ export class BaseInteraction< return body; case InteractionResponseType.ChannelMessageWithSource: case InteractionResponseType.UpdateMessage: { + //@ts-ignore return { type: body.type, - //@ts-ignore data: BaseInteraction.transformBody(body.data ?? {}, files, self), }; } diff --git a/src/websocket/discord/workermanager.ts b/src/websocket/discord/workermanager.ts index d04b970..0779fc8 100644 --- a/src/websocket/discord/workermanager.ts +++ b/src/websocket/discord/workermanager.ts @@ -283,7 +283,7 @@ export class WorkerManager extends Map< { this.get(message.workerId)!.ready = true; if ([...this.values()].every(w => w.ready)) { - this.postMessage(this.keys().next().value, { + this.postMessage(this.keys().next().value!, { type: 'BOT_READY', } satisfies ManagerSendBotReady); this.forEach(w => {