@tpmjs/discord-post
Post a message or rich embed to a Discord channel. Supports plain text messages and formatted embeds with titles, descriptions, colors, and fields.
Test @tpmjs/discord-post (discordPostTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/discord-postpnpm add @tpmjs/discord-postyarn add @tpmjs/discord-postbun add @tpmjs/discord-postdeno add npm:@tpmjs/discord-postimport { discordPostTool } from '@tpmjs/discord-post';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { discordPostTool } from '@tpmjs/discord-post';
const result = await generateText({
model: openai('gpt-4o'),
tools: { discordPostTool },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
channelIdstringDiscord channel ID to post to
contentstringPlain text message content (max 2000 characters)
embedobjectRich embed object for formatted messages
Schema extracted: 1/15/2026, 3:45:44 AM
ERROR: No README data found!
Downloads/month
0
Quality Score