Skip to main content
Glama

discord_get_forum_channels

Retrieve all forum channels from a Discord guild to manage discussions and organize topics within the server.

Instructions

List all forum channels in a guild.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guild_idYes

Implementation Reference

  • Handler implementation for the discord_get_forum_channels tool.
    case "discord_get_forum_channels": {
      const guild = await discord.guilds.fetch(validateId(args.guild_id, "guild_id"));
      const channels = await guild.channels.fetch();
      const forums = [...channels.values()]
        .filter((c) => c && c.type === ChannelType.GuildForum)
        .map((c) => ({
          id: c!.id,
          name: c!.name,
          topic: (c as ForumChannel).topic,
          parentId: c!.parentId,
        }));
      return { content: [{ type: "text", text: JSON.stringify(forums, null, 2) }] };
    }
  • Tool definition and input schema for discord_get_forum_channels.
    {
      name: "discord_get_forum_channels",
      description: "List all forum channels in a guild.",
      inputSchema: {
        type: "object",
        properties: {
          guild_id: { type: "string" },
        },
        required: ["guild_id"],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PaSympa/discord-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server