diff --git a/src/common/shorters/interaction.ts b/src/common/shorters/interaction.ts index 5d7057e..fab188f 100644 --- a/src/common/shorters/interaction.ts +++ b/src/common/shorters/interaction.ts @@ -5,7 +5,9 @@ import { BaseShorter } from './base'; export class InteractionShorter extends BaseShorter { async reply(id: string, token: string, body: ReplyInteractionBody) { //@ts-expect-error - const { files, ...data } = body.data ?? {}; + const { files, ...rest } = body.data ?? {}; + //@ts-expect-error + const data = body.data instanceof Modal ? body.data : rest; return this.client.proxy .interactions(id)(token) .callback.post({