Skip to content

Commit

Permalink
Update all Yarn dependencies (2021-09-05) (#259)
Browse files Browse the repository at this point in the history
* chore(package): update all Yarn dependencies (2021-09-05)

* chore: hmmm

permalink: http://whatthecommit.com/d80df00961644ea75c3ce283ac3d7f32

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Jeroen Claassens <[email protected]>
  • Loading branch information
depfu[bot] and favna authored Sep 5, 2021
1 parent 9f81b7b commit 3483522
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 313 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@
"@sapphire/prettier-config": "^1.1.6",
"@sapphire/ts-config": "^3.0.0",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.5",
"@types/node": "^16.7.10",
"@types/ws": "^7.4.7",
"cz-conventional-changelog": "^3.3.0",
"discord.js": "^13.1.0",
"husky": "^7.0.2",
"jest": "^27.0.6",
"jest-circus": "^27.0.6",
"jest": "^27.1.0",
"jest-circus": "^27.1.0",
"lint-staged": "^11.1.2",
"pretty-quick": "^3.1.1",
"rollup": "^2.56.3",
"rollup-plugin-version-injector": "^1.3.3",
"standard-version": "^9.3.1",
"ts-jest": "^27.0.5",
"ts-node": "^10.2.1",
"typedoc": "^0.21.8",
"typedoc": "^0.21.9",
"typedoc-plugin-nojekyll": "^1.0.1",
"typescript": "^4.3.5"
"typescript": "^4.4.2"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/structures/Listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export abstract class Listener<E extends keyof ClientEvents | symbol = ''> exten
try {
await this.run(...args);
} catch (error) {
this.container.client.emit(Events.ListenerError, error, { piece: this });
this.container.client.emit(Events.ListenerError, error as Error, { piece: this });
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/listeners/command-handler/CoreCommandAccepted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class CoreListener extends Listener<typeof Events.CommandAccepted> {
const result = await command.run(message, args, context);
message.client.emit(Events.CommandSuccess, { ...payload, args, result });
} catch (error) {
message.client.emit(Events.CommandError, error, { ...payload, args, piece: command });
message.client.emit(Events.CommandError, error as Error, { ...payload, args, piece: command });
} finally {
message.client.emit(Events.CommandFinish, message, command, { ...payload, args });
}
Expand Down
Loading

0 comments on commit 3483522

Please sign in to comment.