From 2697e35b2e5b754ea9d0d84db3720fb68b3f43db Mon Sep 17 00:00:00 2001 From: jacoobes Date: Sat, 14 May 2022 02:18:12 -0500 Subject: [PATCH] feat: Add castings for res --- src/handler/events/interactionCreate.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }, _ => {