> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchbean.com/llms.txt
> Use this file to discover all available pages before exploring further.

# discord_edit_message

> Run the discord_edit_message tool. Returns a clean, normalized JSON shape. Bring your own key — connect discord first via POST /v1/connections.



## OpenAPI

````yaml /openapi.json post /v1/discord_edit_message
openapi: 3.1.0
info:
  title: fetchbean API
  version: v1
  description: >-
    One key for external tools and durable agent work products, with HTTP,
    hosted MCP, exact file artifacts, and spend controls.
servers:
  - url: https://api.fetchbean.com
security:
  - apiKeyAuth: []
paths:
  /v1/discord_edit_message:
    post:
      tags:
        - Tools
      summary: discord_edit_message
      description: >-
        Run the discord_edit_message tool. Returns a clean, normalized JSON
        shape. Bring your own key — connect discord first via POST
        /v1/connections.
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              additionalProperties: true
              type: object
              required:
                - channel_id
                - message_id
              properties:
                guild_id:
                  description: >-
                    Connected Discord server id; omitted uses the default
                    server.
                  type: string
                channel_id:
                  type: string
                message_id:
                  type: string
                content:
                  maxLength: 2000
                  type: string
                embeds:
                  type: array
                  items:
                    additionalProperties: true
                    type: object
                    properties: {}
                components:
                  type: array
                  items:
                    additionalProperties: true
                    type: object
                    properties: {}
                allowed_mentions:
                  additionalProperties: true
                  type: object
                  properties: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        A caller-generated key for safely retrying this execution after a
        network failure. Reusing the same key with the same operation and input
        returns the original result; reusing it for a different call is
        rejected.
      schema:
        type: string
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            billable:
              type: boolean
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Your fetchbean API key (fb_…). Keys are not accepted through
        Authorization.

````