Skip to content

Commit 7cb9e3d

Browse files
authored
fix: remove peer deps, update dev deps, update READMEs (#210)
1 parent af30ab0 commit 7cb9e3d

File tree

5 files changed

+773
-1352
lines changed

5 files changed

+773
-1352
lines changed

README.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,27 @@
2121

2222
Sapphire is a Discord bot framework built on top of [discord.js] for advanced and amazing bots.
2323

24-
**Much of the code in this repository is inspired and based on the ideas from [klasa].**
25-
2624
## Features
2725

2826
- Written in TypeScript
2927
- Command Handler, Arguments, Pre-conditions and Events Store
3028
- Completely Modular and Extendable
3129
- Advanced Plugins Support
32-
- Complete i18n Integration
30+
- Supports many [plugins](https://github.com/sapphiredev/plugins)
31+
32+
## Installation
33+
34+
`@sapphire/framework` depends on the following packages. Be sure to install these along with this package!
35+
36+
- [`discord.js`](https://www.npmjs.com/package/discord.js)
37+
38+
You can use the following command to install this package, or replace `npm install` with your package manager of choice.
39+
40+
```sh
41+
npm install @sapphire/framework discord.js
42+
```
43+
44+
---
3345

3446
## API Documentation
3547

@@ -87,4 +99,3 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
8799
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
88100

89101
[discord.js]: https://github.com/discordjs/discord.js
90-
[klasa]: https://github.com/dirigeants/klasa

package.json

+14-17
Original file line numberDiff line numberDiff line change
@@ -29,44 +29,41 @@
2929
"prepare": "husky install .github/husky"
3030
},
3131
"dependencies": {
32-
"@sapphire/discord-utilities": "^2.1.1",
33-
"@sapphire/discord.js-utilities": "^1.5.7",
32+
"@sapphire/discord-utilities": "^2.1.3",
33+
"@sapphire/discord.js-utilities": "^1.5.9",
3434
"@sapphire/pieces": "^2.0.0",
35-
"@sapphire/ratelimits": "^1.2.1",
36-
"@sapphire/utilities": "^1.5.1",
35+
"@sapphire/ratelimits": "^1.2.3",
36+
"@sapphire/utilities": "^1.5.3",
3737
"lexure": "^0.17.0",
3838
"tslib": "^2.2.0"
3939
},
40-
"peerDependencies": {
41-
"discord.js": "12.x"
42-
},
4340
"devDependencies": {
4441
"@commitlint/cli": "^12.1.4",
4542
"@commitlint/config-conventional": "^12.1.4",
4643
"@mdx-js/mdx": "^1.6.22",
47-
"@sapphire/eslint-config": "^3.1.2",
48-
"@sapphire/prettier-config": "^1.1.1",
49-
"@sapphire/ts-config": "^2.2.1",
44+
"@sapphire/eslint-config": "^3.1.4",
45+
"@sapphire/prettier-config": "^1.1.3",
46+
"@sapphire/ts-config": "^2.2.3",
5047
"@types/jest": "^26.0.23",
51-
"@types/node": "^15.6.1",
48+
"@types/node": "^15.12.1",
5249
"@types/ws": "^7.4.4",
5350
"cz-conventional-changelog": "^3.3.0",
5451
"discord.js": "^12.5.3",
5552
"husky": "^6.0.0",
56-
"jest": "^26.6.3",
57-
"jest-circus": "^26.6.3",
53+
"jest": "^27.0.4",
54+
"jest-circus": "^27.0.4",
5855
"lint-staged": "^11.0.0",
5956
"npm-run-all": "^4.1.5",
6057
"pretty-quick": "^3.1.0",
61-
"rollup": "^2.47.0",
58+
"rollup": "^2.51.0",
6259
"rollup-plugin-dts": "^3.0.2",
6360
"rollup-plugin-version-injector": "^1.3.3",
6461
"standard-version": "^9.3.0",
65-
"ts-jest": "^26.5.6",
62+
"ts-jest": "^27.0.2",
6663
"ts-node": "^10.0.0",
67-
"typedoc": "^0.20.36",
64+
"typedoc": "^0.21.0-beta.1",
6865
"typedoc-plugin-nojekyll": "^1.0.1",
69-
"typescript": "^4.2.4"
66+
"typescript": "^4.3.2"
7067
},
7168
"repository": {
7269
"type": "git",

src/lib/SapphireClient.ts

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ export interface SapphireClientOptions {
111111
* [[SapphireClient.registerUserDirectories]] for reference. This method is called at the start of the
112112
* [[SapphireClient.login]] method.
113113
*
114+
* @see {@link SapphireClientOptions} for all options available to the Sapphire Client. You can also provide all of discord.js' [ClientOptions](https://discord.js.org/#/docs/main/stable/typedef/ClientOptions)
115+
*
114116
* @since 1.0.0
115117
* @example
116118
* ```typescript

src/lib/structures/Event.ts

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export abstract class Event<E extends keyof ClientEvents | symbol = ''> extends
8383

8484
private async _run(...args: unknown[]) {
8585
try {
86-
// @ts-expect-error Argument of type 'unknown[]' is not assignable to parameter of type 'E extends string | number ? ClientEvents[E] : unknown[]'. (2345)
8786
await this.run(...args);
8887
} catch (error) {
8988
this.container.client.emit(Events.EventError, error, { piece: this });

0 commit comments

Comments
 (0)