Fix linter issues
All checks were successful
Test / build (push) Successful in 34s

This commit is contained in:
Ethan Lane 2025-01-22 18:08:05 +00:00
parent 34964af78e
commit 1106585f58
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
export type ButtonInteraction = {
guild: {} | null,
guild: object | null,
guildId: string | null,
channel: {
isSendable: jest.Func,

View file

@ -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<InteractionResponse<boolean>>();
@ -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<InteractionResponse<boolean>>();