---
title: "Defers a slash command response in Discord."
method: POST
path: "/deferInteraction"
---

# Defers a slash command response in Discord.

`POST /deferInteraction`

This function acknowledges a Discord slash command interaction and allows the bot more time to process the command. It takes an interaction token and an optional parameter to set the response as ephemeral. The function returns a Promise that resolves when the interaction is successfully deferred.

## Request body

- object
  - `body` object — Body of the deferInteraction sls call
    - `arguments` unknown[], required
      - unknown
    - `auth` object — Authentication object
      - `strategy` 'apikey' — Authentication strategy
      - `variables` unknown[] — Variables for the authentication strategy
        - unknown
    - `packageName` string — @microfox/discord

## Response `200`

Interaction successfully deferred

- object
  - `success` boolean — Indicates if the interaction was successfully deferred

## Other responses

- `400` — Bad request - invalid interaction token or parameters
- `401` — Unauthorized - invalid or expired interaction token
- `500` — Internal server error

---

[API](https://skmtc.net/microfox-ai/apis/microfox-discord-sdk-api.md) · [All operations](https://skmtc.net/microfox-ai/apis/microfox-discord-sdk-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/microfox-ai/microfox-discord-sdk-api/versions/7cb5b64ae924/schema)
