---
title: "Fetches information about a specific Discord guild (server)."
method: POST
path: "/fetchGuildInfo"
---

# Fetches information about a specific Discord guild (server).

`POST /fetchGuildInfo`

This function retrieves detailed information about a specified Discord guild using its unique identifier. It returns comprehensive data about the guild, including its name, icon, members, and channels. The function is asynchronous and returns a Promise that resolves to a guild object.

## Request body

- object
  - `body` object — Body of the fetchGuildInfo 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`

Successful response with guild information

- object
  - `id` string, required — The unique identifier of the guild
  - `name` string, required — The name of the guild
  - `icon` string — The icon hash of the guild
  - `members` object[] — Array of guild members
  - `channels` object[] — Array of guild channels

## Other responses

- `400` — Bad request - Invalid guild ID provided
- `404` — Guild not found
- `500` — Internal server error

## Changes

- **2025-05-29** `2deb154b9766` — 4 warning, 8 info
  - removed the optional property `arguments` from the response with the `200` status
  - removed the optional property `description` from the response with the `200` status
  - removed the optional property `responses` from the response with the `200` status
  - removed the optional property `summary` from the response with the `200` status
  - …8 more
- **2025-05-28** `d03e8c66c195` — 4 breaking, 3 warning, 5 info
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `500`
  - removed the required property `id` from the response with the `200` status
  - removed the required property `name` from the response with the `200` status
  - …8 more

[Change history](https://skmtc.dev/microfox-ai/apis/microfox-discord-sdk-api/changes/fetchGuildInfo/post.md)

---

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