Skip to content

Commit

Permalink
chore(deps): update all non-major dependencies (#769)
Browse files Browse the repository at this point in the history
* chore(deps): update all non-major dependencies

* chore: oops

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jeroen Claassens <support@favware.tech>
  • Loading branch information
renovate[bot] and favna authored Jul 14, 2024
1 parent e43c7e2 commit 23abe73
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@sapphire/prettier-config": "^2.0.0",
"@sapphire/ts-config": "^5.0.1",
"@types/node": "^20.14.10",
"@types/ws": "^8.5.10",
"@types/ws": "^8.5.11",
"@typescript-eslint/eslint-plugin": "^7.13.1",
"@typescript-eslint/parser": "^7.13.1",
"@vitest/coverage-v8": "^2.0.2",
Expand All @@ -69,7 +69,7 @@
"eslint-plugin-prettier": "^5.1.3",
"gen-esm-wrapper": "^1.1.3",
"lint-staged": "^15.2.7",
"prettier": "^3.3.2",
"prettier": "^3.3.3",
"tsup": "^8.1.0",
"typedoc": "^0.25.13",
"typedoc-json-parser": "^10.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/precondition-resolvers/cooldown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export function parseConstructorPreConditionsCooldown<P, O extends Command.Optio
// be set. If an overridden value is passed, it will have priority. Otherwise, it will default to 0 if filtered
// (causing the precondition to not be registered) or the default value with a fallback to a single-use cooldown.
const filtered = defaultCooldown?.filteredCommands?.includes(command.name) ?? false;
const limit = cooldownLimit ?? (filtered ? 0 : defaultCooldown?.limit ?? 1);
const delay = cooldownDelay ?? (filtered ? 0 : defaultCooldown?.delay ?? 0);
const limit = cooldownLimit ?? (filtered ? 0 : (defaultCooldown?.limit ?? 1));
const delay = cooldownDelay ?? (filtered ? 0 : (defaultCooldown?.delay ?? 0));

if (limit && delay) {
const scope = cooldownScope ?? defaultCooldown?.scope ?? BucketScope.User;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/resolvers/guildChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function resolveGuildChannel(parameter: string, guild: Guild): Result<Gui

function resolveById(argument: string, guild: Guild): GuildBasedChannelTypes | null {
const channelId = ChannelMentionRegex.exec(argument) ?? SnowflakeRegex.exec(argument);
return channelId ? (guild.channels.cache.get(channelId[1] as Snowflake) as GuildBasedChannelTypes) ?? null : null;
return channelId ? ((guild.channels.cache.get(channelId[1] as Snowflake) as GuildBasedChannelTypes) ?? null) : null;
}

function resolveByQuery(argument: string, guild: Guild): GuildBasedChannelTypes | null {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/structures/Listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export abstract class Listener<E extends keyof ClientEvents | symbol = '', Optio
this.emitter =
typeof options.emitter === 'undefined'
? this.container.client
: (typeof options.emitter === 'string'
: ((typeof options.emitter === 'string'
? (Reflect.get(this.container.client, options.emitter) as EventEmitter)
: (options.emitter as EventEmitter)) ?? null;
: (options.emitter as EventEmitter)) ?? null);
this.event = options.event ?? this.name;
this.once = options.once ?? false;

Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ __metadata:
"@sapphire/ts-config": "npm:^5.0.1"
"@sapphire/utilities": "npm:^3.16.2"
"@types/node": "npm:^20.14.10"
"@types/ws": "npm:^8.5.10"
"@types/ws": "npm:^8.5.11"
"@typescript-eslint/eslint-plugin": "npm:^7.13.1"
"@typescript-eslint/parser": "npm:^7.13.1"
"@vitest/coverage-v8": "npm:^2.0.2"
Expand All @@ -1104,7 +1104,7 @@ __metadata:
eslint-plugin-prettier: "npm:^5.1.3"
gen-esm-wrapper: "npm:^1.1.3"
lint-staged: "npm:^15.2.7"
prettier: "npm:^3.3.2"
prettier: "npm:^3.3.3"
tsup: "npm:^8.1.0"
typedoc: "npm:^0.25.13"
typedoc-json-parser: "npm:^10.0.0"
Expand Down Expand Up @@ -1260,12 +1260,12 @@ __metadata:
languageName: node
linkType: hard

"@types/ws@npm:^8.5.10":
version: 8.5.10
resolution: "@types/ws@npm:8.5.10"
"@types/ws@npm:^8.5.10, @types/ws@npm:^8.5.11":
version: 8.5.11
resolution: "@types/ws@npm:8.5.11"
dependencies:
"@types/node": "npm:*"
checksum: 10/9b414dc5e0b6c6f1ea4b1635b3568c58707357f68076df9e7cd33194747b7d1716d5189c0dbdd68c8d2521b148e88184cf881bac7429eb0e5c989b001539ed31
checksum: 10/950d13b762fc7c092a0fc1450c41229a1d41abb93cb72251068885bd46fa4bbcf461c00df2e77de3f7a547371998b650a720ed90417562af0772b14a8a009dec
languageName: node
linkType: hard

Expand Down Expand Up @@ -5025,12 +5025,12 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^3.0.0, prettier@npm:^3.3.0, prettier@npm:^3.3.2":
version: 3.3.2
resolution: "prettier@npm:3.3.2"
"prettier@npm:^3.0.0, prettier@npm:^3.3.0, prettier@npm:^3.3.3":
version: 3.3.3
resolution: "prettier@npm:3.3.3"
bin:
prettier: bin/prettier.cjs
checksum: 10/83214e154afa5aa9b664c2506640212323eb1376b13379b2413dc351b7de0687629dca3f00ff2ec895ebd7e3a2adb7d7e231b6c77606e2358137f2150807405b
checksum: 10/5beac1f30b5b40162532b8e2f7c3a4eb650910a2695e9c8512a62ffdc09dae93190c29db9107fa7f26d1b6c71aad3628ecb9b5de1ecb0911191099be109434d7
languageName: node
linkType: hard

Expand Down

0 comments on commit 23abe73

Please sign in to comment.