Skip to content

Commit

Permalink
chore(deps): update dependencies to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-737 committed Mar 1, 2024
1 parent 398903d commit 23ea5cf
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 98 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"type": "module",
"dependencies": {
"@prisma/client": "^5.10.2",
"@sentry/node": "^7.102.1",
"@sentry/node": "^7.104.0",
"@tensorflow/tfjs-node": "^4.17.0",
"@top-gg/sdk": "^3.1.6",
"common-tags": "^1.8.2",
"discord-hybrid-sharding": "^2.1.4",
"discord.js": "^14.14.1",
"dotenv": "^16.4.5",
"express": "^4.18.2",
"express": "^4.18.3",
"google-translate-api-x": "^10.6.8",
"jpeg-js": "^0.4.4",
"js-yaml": "^4.1.0",
Expand All @@ -40,16 +40,16 @@
"winston": "^3.11.0"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^1.6.2",
"@stylistic/eslint-plugin": "^1.6.3",
"@types/common-tags": "^1.8.4",
"@types/express": "^4.17.21",
"@types/i18n": "^0.13.10",
"@types/js-yaml": "^4.0.9",
"@types/lodash": "^4.14.202",
"@types/node": "^20.11.20",
"@types/node": "^20.11.24",
"@types/source-map-support": "^0.5.10",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"eslint": "8.57.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/context-menu/deleteMsg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class DeleteMessage extends BaseCommand {
readonly cooldown = 10_000;

async execute(interaction: MessageContextMenuCommandInteraction) {
const isOnCooldown = await this.handleCooldown(interaction);
const isOnCooldown = await this.checkAndSetCooldown(interaction);
if (isOnCooldown) return;

await interaction.deferReply({ ephemeral: true });
Expand Down
2 changes: 1 addition & 1 deletion src/commands/context-menu/editMsg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class EditMessage extends BaseCommand {
readonly cooldown = 10_000;

async execute(interaction: MessageContextMenuCommandInteraction) {
const isOnCooldown = await this.handleCooldown(interaction);
const isOnCooldown = await this.checkAndSetCooldown(interaction);
if (isOnCooldown) return;

const target = interaction.targetMessage;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/slash/Staff/purge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class Purge extends BaseCommand {
};

async execute(interaction: ChatInputCommandInteraction) {
const isOnCooldown = await this.handleCooldown(interaction);
const isOnCooldown = await this.checkAndSetCooldown(interaction);
if (isOnCooldown) return;

await interaction.deferReply({ fetchReply: true });
Expand Down
2 changes: 1 addition & 1 deletion src/core/BaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default abstract class BaseCommand {
async handleModals?(interaction: ModalSubmitInteraction): Promise<unknown>;
async autocomplete?(interaction: AutocompleteInteraction): Promise<unknown>;

async handleCooldown(interaction: RepliableInteraction): Promise<boolean> {
async checkAndSetCooldown(interaction: RepliableInteraction): Promise<boolean> {
const remainingCooldown = this.getRemainingCooldown(interaction);

if (remainingCooldown) {
Expand Down
1 change: 0 additions & 1 deletion src/core/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ export default abstract class SuperClient<R extends boolean = boolean> extends C
}
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
static resolveEval = <T>(value: T[]) =>
value?.find((res) => Boolean(res)) as RemoveMethods<T> | undefined;

Expand Down
Loading

0 comments on commit 23ea5cf

Please sign in to comment.