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
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes |
Implementation Reference
- src/tools/forums.ts:178-190 (handler)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) }] }; } - src/tools/forums.ts:7-17 (schema)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"], }, },