implement first interaction handling

This commit is contained in:
2026-02-18 00:56:54 +01:00
parent cb7235fd69
commit 6053692bc1
31 changed files with 278 additions and 493 deletions

View File

@@ -2,8 +2,10 @@ import type { WaterMeService } from "@avocadi/bot-core/features/water-me/water-m
import {
ActionRowBuilder,
ButtonBuilder,
type ButtonInteraction,
ButtonStyle,
type CacheType,
type ChatInputCommandInteraction,
type Interaction,
} from "discord.js";
import { waterMeService } from "./water-me.service";
@@ -15,7 +17,9 @@ class WaterMeController {
this.waterMeService = waterMeService;
}
async handleInteraction(interaction: Interaction<CacheType>) {
async handleInteraction(
interaction: ButtonInteraction | ChatInputCommandInteraction,
) {
const result = this.waterMeService.waterMe();
const moreButton = new ButtonBuilder()