@tpmjs/discord-read
Read messages from a Discord server for the past N hours. Fetches all text channels and their messages, filtering by time and optionally excluding bot messages.
Test @tpmjs/discord-read (discordReadTool) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/discord-readpnpm add @tpmjs/discord-readyarn add @tpmjs/discord-readbun add @tpmjs/discord-readdeno add npm:@tpmjs/discord-readimport { discordReadTool } from '@tpmjs/discord-read';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { discordReadTool } from '@tpmjs/discord-read';
const result = await generateText({
model: openai('gpt-4o'),
tools: { discordReadTool },
prompt: 'Your prompt here...',
});
console.log(result.text);Available configuration options
guildIdstringDiscord server (guild) ID
hoursnumberNumber of hours to look back (default: 24)
excludeChannelsarrayChannel IDs to exclude from reading
excludeBotsbooleanWhether to exclude bot messages (default: true)
Schema extracted: 1/15/2026, 3:45:44 AM
ERROR: No README data found!
Downloads/month
0
Quality Score