From fbce135a7b836eca728639e80edf78757a2fb91f Mon Sep 17 00:00:00 2001 From: Deivu Date: Tue, 1 Aug 2023 14:27:44 +0800 Subject: [PATCH] feat: update d.js/ws & make error throw in strategy --- package.json | 2 +- src/strategy/IndomitableFetchingStrategy.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 792a394..f73115d 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "homepage": "https://github.com/Deivu/Indomitable#readme", "peerDependencies": { "discord.js": ">=14.10.x", - "@discordjs/ws": ">=0.8.3" + "@discordjs/ws": ">=1.0.0" }, "devDependencies": { "@augu/eslint-config": "^4.0.1", diff --git a/src/strategy/IndomitableFetchingStrategy.ts b/src/strategy/IndomitableFetchingStrategy.ts index 308b549..92445e0 100644 --- a/src/strategy/IndomitableFetchingStrategy.ts +++ b/src/strategy/IndomitableFetchingStrategy.ts @@ -43,9 +43,7 @@ export class IndomitableFetchingStrategy implements IContextFetchingStrategy { const listener = () => this.abortIdentify(shardId); try { signal.addEventListener('abort', listener); - await this.ipc - .send({ content, repliable: true }) - .catch(() => null); + await this.ipc.send({ content, repliable: true }); } finally { signal.removeEventListener('abort', listener); }