From d50c614753e2691d61d197f03dde546219ff90fd Mon Sep 17 00:00:00 2001 From: BOTREL Kilian Date: Sat, 23 Dec 2023 00:30:51 +0100 Subject: [PATCH] fix(type): :bug: InteractionHandler.callback --- src/types/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/index.ts b/src/types/index.ts index 2a01790..3cf78c4 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -49,10 +49,10 @@ export interface InteractionHandler< 'addSubcommand' | 'addSubcommandGroup' > | string - readonly callback: ( + callback( interaction: InteractionType, metadata?: InteractionMetadata, - ) => void | Promise + ): void | Promise } export enum LogLevel {