fix(discord-bot): missing types
All checks were successful
Build and Push Docker Image / typecheck (push) Successful in 24s
Build and Push Docker Image / build (push) Successful in 34s

This commit is contained in:
2026-05-12 19:22:23 +02:00
parent 00b3ade095
commit ca13301263

View File

@@ -1,14 +1,10 @@
import type { Client, OmitPartialGroupDMChannel, Message } from "discord.js";
import type { Client, Interaction, OmitPartialGroupDMChannel, Message } from "discord.js";
import { logger } from "@lbf-bot/utils";
import { env } from "~/env";
import { questCheckCron } from "~/quests";
import { trackingCron } from "~/tracking";
import { commands } from "~/commands";
import {
handleReportButton, handleReportModal, handleEditButton, handleDeleteButton, handleEditModal,
REPORT_BUTTON_ID, REPORT_MODAL_ID,
REPORT_EDIT_BUTTON_PREFIX, REPORT_DELETE_BUTTON_PREFIX, REPORT_EDIT_MODAL_PREFIX,
} from "~/reporting";
import { handleReportButton, handleReportModal, handleEditButton, handleDeleteButton, handleEditModal, REPORT_BUTTON_ID, REPORT_MODAL_ID, REPORT_EDIT_BUTTON_PREFIX, REPORT_DELETE_BUTTON_PREFIX, REPORT_EDIT_MODAL_PREFIX } from "~/reporting";
const onReady = async (client: Client<true>) => {
logger.info(`Client ready`);
@@ -42,7 +38,7 @@ const onMessage = async (message: OmitPartialGroupDMChannel<Message>) => {
}
};
const onInteraction = async (interaction: Parameters<Parameters<Client["on"]>[1]>[0], client: Client) => {
const onInteraction = async (interaction: Interaction, client: Client) => {
if (interaction.isButton()) {
if (interaction.customId === REPORT_BUTTON_ID) {
await handleReportButton(interaction);