diff --git a/src/handler/events/interactionCreate.ts b/src/handler/events/interactionCreate.ts index c105530..95a6db5 100644 --- a/src/handler/events/interactionCreate.ts +++ b/src/handler/events/interactionCreate.ts @@ -54,7 +54,7 @@ function applicationCommandHandler< resolveParameters(args ), controller); - }); + }) as Awaited>[]; return of({ res, mod, ctx }); }, ) @@ -73,13 +73,13 @@ function messageComponentInteractionHandler( .with({ componentType : ComponentType.Button }, (i : ButtonInteraction) => { const res = eventPlugins.map(e => { return e.execute(resolveParameters([i]), controller); - }); + }) as Awaited>[]; return of({ res, mod, i}); }) .with( { componentType : ComponentType.SelectMenu }, (i : SelectMenuInteraction) => { const res = eventPlugins.map(e => { return e.execute(resolveParameters([i]), controller); - }); + }) as Awaited>[]; return of({ res, mod, i}); }) .with( { componentType : ComponentType.TextInput }, _ => {