discord-get-messages

Retrieve and filter Discord channel messages via the Discord API.

520|175|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/EvolutionAPI/evo-nexus --skill discord-get-messages
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: discord-get-messages
Source: https://github.com/EvolutionAPI/evo-nexus/tree/main/.claude/skills/discord-get-messages
Command: npx skills add https://github.com/EvolutionAPI/evo-nexus --skill discord-get-messages

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Retrieve and format Discord channel messages for reading, searching, analysis, and export so users do not have to manually scroll, copy, or filter large conversation histories.

Core Features & Use Cases

  • Paginated retrieval: Fetch messages in batches and iterate with before/after/around parameters to collect large histories.
  • Filtering & search: Support filtering by author, keyword, message type, and attachments after retrieval for targeted analysis.
  • Export & formatting: Produce readable summaries, detailed message records, or plain text exports for archival or processing.
  • Robust error handling: Validate environment token, channel ID format, permission errors, rate limits, and common HTTP response codes.
  • Use case: Export the last 250 messages from a support channel, filter by a user's messages, and save a formatted transcript for reporting.

Quick Start

Use the discord-get-messages skill to fetch the last 50 messages from channel 123456789012345678 using the DISCORD_BOT_TOKEN environment variable.

Frequently Asked Questions about discord-get-messages

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export Discord channel messages using the API?

Export Discord channel messages by fetching them via the Discord API using a bot token, then format the retrieved records into readable transcripts or plain text for archival and analysis.

Can I filter Discord messages by author or keyword after retrieval?

Yes, you can filter Discord messages by author, keyword, message type, and attachments after retrieval to target specific conversations for analysis or moderation reporting.

What do I need to read Discord channel message history with a bot?

Reading Discord channel message history requires a valid DISCORD_BOT_TOKEN, bot membership in the target channel, and explicit read message history permissions.

How do I fetch large histories of Discord messages without hitting limits?

Fetch large Discord message histories using paginated retrieval in batches, iterating with before, after, or around parameters while adhering to Discord API v10 rate limits.

Why does my Discord bot fail to retrieve messages from a channel?

Discord message retrieval fails due to missing environment tokens, invalid channel ID formats, insufficient permissions, or unhandled Discord API rate limits and HTTP response codes.

Does this approach work for exporting support channel transcripts for reporting?

Yes, you can export a specified number of messages from a support channel, filter them by user, and save a formatted transcript suitable for moderation and reporting tasks.