Skip to content

Commit

Permalink
feat: update d.js/ws & make error throw in strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Aug 1, 2023
1 parent f441d1f commit fbce135
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions src/strategy/IndomitableFetchingStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit fbce135

Please sign in to comment.