Skip to content

Commit b375de1

Browse files
chore(deps): update dependency discord.js to v14.22.1 (#152)
* chore(deps): update dependency discord.js to v14.22.0 * Update lint.yml * Update client.ts * Update events.ts * Format * Update package.json * chore(deps): update dependency discord.js to v14.22.1 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: cobalt <[email protected]>
1 parent a9b9519 commit b375de1

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
- "14.19"
8181
- "14.20"
8282
- "14.21"
83+
- "14.22"
8384
# - "dev"
8485

8586
steps:

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"devDependencies": {
4545
"@redguy12/prettier-config": "3.4.4",
4646
"@types/node": "<=18.11",
47-
"discord.js": "14.21.0",
47+
"discord.js": "14.22.1",
4848
"eslint": "9.33.0",
4949
"eslint-config-cobaltt7": "1.3.1",
5050
"prettier": "3.6.2",

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ export let client: Client<true>;
5656
*/
5757
export async function login(loginOptions: LoginOptions): Promise<void> {
5858
const [major, minor = "", patch] = version.split(".");
59-
if (major !== "14" || +minor < 9 || patch?.includes("-dev"))
59+
if (major !== "14" || +minor < 9 || +minor > 22 || patch?.includes("-dev"))
6060
process.emitWarning(
6161
`You are using an non-officially-supported version of discord.js (${
6262
version
63-
}). Please use version 14.9-14.21 for maximum stability.`,
63+
}). Please use version 14.9-14.22 for maximum stability.`,
6464
"ExperimentalWarning",
6565
);
6666

src/definition/events.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ import type { Awaitable, ClientEvents } from "discord.js";
22

33
// TODO: add interactionCreate
44
/** Events that are reserved for strife.js to handle and that end-users should not use. */
5-
export const reservedClientEvents = ["ready", "debug", "warn", "error", "invalidated"] as const;
5+
export const reservedClientEvents = [
6+
"ready",
7+
"clientReady",
8+
"debug",
9+
"warn",
10+
"error",
11+
"invalidated",
12+
] as const;
613
/** All supported client events that can be handled. */
714
export type StrifeEvents = Exclude<keyof ClientEvents, (typeof reservedClientEvents)[number]>;
815

0 commit comments

Comments
 (0)