Skip to content

Dataset

Discord server message history datasets for AI training

A Discord dataset is a collection of the messages from a business's own Discord server: text channel messages, threads and forum channel posts with their replies, reactions, attachments, embeds, member roles and moderation actions. SourceX sources it to a buyer's spec from established businesses that run a server for their customers or community, collected by a bot through Discord's API because the platform has no server-wide export. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Message history of a business-run Discord server: channels, threads and forum posts with replies, reactions, files and roles
Typical systems
Discord servers with text, announcement and forum channels, threads, AutoMod and the audit log, read by a bot through the Discord API
Typical history
From the server's creation for messages still present; deleted messages are gone and the audit log covers only its retention window
Modality
Message text with structured references, tags, reactions and roles; attached images and files; no voice audio
Delivery formats
JSONL per channel and thread in the API's message shape, attachments as files, channel, tag and role tables as JSON
Preparation
User IDs, usernames and mention tokens pseudonymized; members' direct messages are not part of a server's history; specify how attachments are screened
Licensing
Depends on member notice and Discord's developer terms; reviewed per dataset, permitted use agreed per license
Availability
Sourced to your spec from businesses that run their own server; supply is not guaranteed
TextIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
channelobjectThe channel a message sits in: guild, type (text, announcement, forum or a voice channel's text chat), category and topic.
threadobjectFor a thread or forum post: name, owner, the archived and locked flags from thread_metadata, message_count and total_message_sent.
applied_tagsarrayThe forum post's applied_tags resolved to names from the forum channel's available_tags, with each tag's moderated flag.
message_idstringPseudonymous message ID, delivered with the creation time the original snowflake ID encoded.
message_typeenumDiscord's message type, which separates default messages and replies from thread starters, joins, pins and AutoMod notices.
authorobjectPseudonymous user who sent the message, with the bot flag and webhook_id that mark automated posts.
member_rolesarrayThe author's roles from the guild member record at collection time, not the roles held when the message was sent.
contentstringMessage text with user, role and channel mention tokens rewritten to the delivery's pseudonyms.
message_referenceobjectThe message a reply or forward points to, its type, and whether the target was present, deleted or not fetched.
attachmentsarrayFiles attached to the message, delivered as files, since attachment links expire.
embedsarrayEmbed objects on the message: link previews and the titled cards that bots and webhooks post.
reactionsarrayReaction objects with emoji and count, and the users behind each count where fetched.
edited_timestamptimestampWhen the message was last edited, or null. Discord returns only the current text.
moderation_eventsarrayAudit log entries for the channel or author, such as message deletes, bans, timeouts, role updates and AutoMod blocks.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "channel": {
    "guild": "g_01",
    "type": "GUILD_FORUM",
    "name": "help"
  },
  "thread": {
    "thread_id": "th_90412",
    "name": "Webhook retries stop after a deploy",
    "owner": "u_5521",
    "archived": true,
    "locked": true,
    "message_count": 6,
    "total_message_sent": 7
  },
  "applied_tags": [
    {
      "name": "Webhooks",
      "moderated": false
    },
    {
      "name": "Solved",
      "moderated": true
    }
  ],
  "messages": [
    {
      "message_id": "th_90412",
      "sent_at": "2025-06-03T09:12:44Z",
      "message_type": "DEFAULT",
      "author": {
        "user": "u_5521",
        "bot": false
      },
      "member_roles": [],
      "content": "After every deploy our endpoint stops getting retries. Config attached.",
      "message_reference": null,
      "attachments": [
        {
          "file": "att_001.json"
        }
      ],
      "embeds": [],
      "reactions": [
        {
          "emoji": "eyes",
          "count": 2
        }
      ],
      "edited_timestamp": null
    },
    {
      "message_id": "m_90418",
      "sent_at": "2025-06-03T09:40:02Z",
      "message_type": "REPLY",
      "author": {
        "user": "u_0077",
        "bot": false
      },
      "member_roles": [
        "Support Team"
      ],
      "content": "<@u_5521> retries pause while the old signing secret is cached. Rotate it after the deploy.",
      "message_reference": {
        "message_id": "th_90412",
        "type": "DEFAULT",
        "target_present": true
      },
      "attachments": [],
      "embeds": [],
      "reactions": [
        {
          "emoji": "white_check_mark",
          "count": 1
        }
      ],
      "edited_timestamp": "2025-06-03T09:41:30Z"
    }
  ],
  "moderation_events": [
    {
      "action_type": "MESSAGE_DELETE",
      "at": "2025-06-03T10:02:11Z",
      "moderator": "u_0077",
      "reason": "spam link"
    }
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train support agents on community answers

Forum posts with a starter question, replies and a resolution tag give question and answer pairs in customers' words.

Disentangle multi-party chat

Busy text channels with reply references are interleaved conversations with partial ground truth for who answers whom.

Ground retrieval in product Q&A

Solved posts tagged by product area form a retrieval corpus of problems that documentation did not cover.

Learn moderation decisions

Message deletes, timeouts and AutoMod blocks, with reasons where given, show what moderators acted on.

Build held-out answer evaluations

Servers closed to the public hold threads unlikely to sit in web crawls, usable as test questions with known fixes.

Use-case guides: Customer support agents, Private evaluation sets, Document AI, enterprise search and RAG

What makes this data valuable

Forum structure kept

Posts arrive as threads with tags, starter message and flags, not flattened into a message list.

Archived threads included

Old posts and private threads were enumerated, and the method is stated.

Reply references resolved

Each reply names its target and says whether that target still existed.

Deletion measured

Thread counters are delivered, so removed messages can be estimated.

Staff identified by date

Staff answers are marked from a dated roster, not from today's roles.

Files, not links

Attachments were downloaded at collection, before their signed links expired, and the screening method is stated.

Record timeline

Discord dataset

This page covers discord server message histories.Illustrative

A forum post is a thread with tags and a starter message

An ordinary Discord text channel is a stream ordered by time, where conversations interleave and the only structure is a reply pointer: a message_reference naming the message being answered. A forum channel is built differently. Only threads can be created in it, and each appears as a post. The post is a thread object with a title, an owner and a list of applied_tags, and its starter message has the same ID as the thread. The forum channel defines the tags that may be used, can require one on every post, and can reserve a tag for moderators. The question is the starter message, the answers are the thread's messages and the category is a tag.

Discord has no accepted-answer field, so a support server marks a post solved by its own convention: a Solved tag, a locked thread, a reaction or a bot command. applied_tags holds only the current set, so the thread does not say when a tag was added. Ask which convention the server used in each period, and whether the tag was moderator-only, since a tag any member can apply is a weaker label. When a reply's target has been deleted the referenced message comes back null, and when it was never fetched the field is absent.

Who answered is harder. A message carries its author, not the roles that author held when writing. Roles come from the member record at collection, so staff who have left have none, and a volunteer promoted later looks like staff on every old answer. If staff and peer answers must be told apart, ask the business for a dated staff roster. Some support servers also run ticket bots that open a private channel for each request and delete it on close, and a later crawl never sees those.

A bot reads the history, and the audit log forgets

No button exports a server. The owner adds a bot, which reads each channel through the API, at most 100 messages a request. The bot sees a channel only with the View Channel and Read Message History permissions, so private channels it was not given are silently missing. Unless the app has the privileged message content intent, the content, embeds and attachments of other people's messages come back empty. Archived threads are not listed with active ones. The collector has to ask each channel for them, and private archived threads need Manage Threads, so a crawl of the channel list alone misses old forum posts.

A deleted message is gone. An edited one keeps its current text and an edited timestamp, with no earlier version. A thread does keep two counters: message_count excludes deleted messages and total_message_sent never goes down, so their difference shows how much was removed. Discord's documentation warns that message_count is inaccurate above 50 on threads created before July 2022. Reactions arrive as a count per emoji, and the users behind it need a further call. Attachment links are signed and expire, so files must be downloaded during collection. A message that AutoMod blocked was never posted, and survives only in an alert channel if the server set one.

The audit log records moderation: who deleted another member's messages, bans, kicks, timeouts, role changes and AutoMod blocks, with a reason where one was given. Discord's documentation says entries are stored for 45 days. Past that window a gap in a conversation has no explanation unless a logging bot copied events into a channel. Check the sample for raw IDs as well. Every Discord ID encodes its creation time, and a user's ID is the same in every server, so it identifies a person until it is replaced, including inside mention tokens in message text.

What to check before licensing

  • Have the data owner and your counsel read Discord's developer policy and terms, as they stood at collection, on using message content obtained through the API for model training.
  • Check what the server's rules, onboarding or announcements told members about licensing their messages, from what date, and how deletion requests were handled.
  • Ask which credential collected the history, a bot the owner added with the message content intent or a user account, and which channels it could not see.
  • Ask how archived and private threads were enumerated, and compare each thread's counters with the messages delivered.
  • Search the sample for raw Discord IDs in content, embeds and file names, and confirm mention tokens were rewritten.
  • Confirm attachments were downloaded as files during collection, and ask how they were screened for personal data.
  • Ask for the collection date, the period the audit log covers, and whether a moderation log channel or ticket transcripts exist.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Can a server owner export the whole server's history?

Not with a built-in tool. Discord offers each user a package of their own account's data, which covers that person's messages and not the server's. A server's history is collected by a bot the owner adds, which reads every channel and thread it has permission to see. Ask which bot or exporter was used, when, and which channels it could not read.

How do forum channel posts differ from ordinary channel messages?

A forum post is a thread with its own title, owner, tags and starter message, so each question and its answers are already grouped. An ordinary text channel is one stream in which replies point at earlier messages and several conversations overlap. For question answering, ask for forum channels first, and for text channels ask that reply references and threads be kept.

Are deleted and edited messages included?

No. The API returns messages that exist at collection, each with its current text and an edited timestamp, and nothing of earlier versions or deleted messages. A thread's two counters show how many of its messages were removed. The audit log records that a moderator deleted someone's message, without the text, and only for its retention window.

Are voice channels part of the dataset?

No audio is. Discord does not record voice channels, so there is nothing to export unless the business recorded sessions with a separate tool, which would be a different dataset with its own consent questions. Voice channels do have a text chat, and those messages are read like any other channel's where the bot had permission.

Did the server's members agree to their messages being licensed?

That is for the buyer and the data owner to establish. Members of a business's server are usually customers or the public, not employees under a workplace policy. Ask what the server's rules, onboarding screen or announcements said about use of messages, from what date, and how deletion requests were handled. Have counsel check the position for minors and members outside the United States.

Is SourceX affiliated with Discord Inc.?

Discord is named to identify the system the records come from. That does not imply a partnership with or endorsement by Discord Inc. The records belong to the business that runs Discord, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies