From 1106585f581342eb87f34a7dcde90133838e3c0c Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Wed, 22 Jan 2025 18:08:05 +0000 Subject: [PATCH] Fix linter issues --- tests/__types__/discord.js.ts | 2 +- tests/buttonEvents/Effects/Use.test.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/__types__/discord.js.ts b/tests/__types__/discord.js.ts index 22c3291..6506b1d 100644 --- a/tests/__types__/discord.js.ts +++ b/tests/__types__/discord.js.ts @@ -1,5 +1,5 @@ export type ButtonInteraction = { - guild: {} | null, + guild: object | null, guildId: string | null, channel: { isSendable: jest.Func, diff --git a/tests/buttonEvents/Effects/Use.test.ts b/tests/buttonEvents/Effects/Use.test.ts index d5618cc..86391cc 100644 --- a/tests/buttonEvents/Effects/Use.test.ts +++ b/tests/buttonEvents/Effects/Use.test.ts @@ -1,4 +1,4 @@ -import { ButtonInteraction, EmbedBuilder, InteractionResponse } from "discord.js"; +import { ButtonInteraction, InteractionResponse, InteractionUpdateOptions, MessagePayload } from "discord.js"; import Use from "../../../src/buttonEvents/Effects/Use"; import { mock } from "jest-mock-extended"; import AppLogger from "../../../src/client/appLogger"; @@ -82,7 +82,7 @@ describe("UseConfirm", () => { // Arrange interaction.customId += " unclaimed"; interaction.user.id = "userId"; - interaction.update.mockImplementation(async (opts: any) => { + interaction.update.mockImplementation(async (opts: string | MessagePayload | InteractionUpdateOptions) => { updatedWith = opts; return mock>(); @@ -133,7 +133,7 @@ describe("UseCancel", () => { // Arrange interaction.customId += " unclaimed"; interaction.user.id = "userId"; - interaction.update.mockImplementation(async (opts: any) => { + interaction.update.mockImplementation(async (opts: string | MessagePayload | InteractionUpdateOptions) => { updatedWith = opts; return mock>();