Skip to content

Messaging & chat

Discord mock API

Stateful Discord replica: channel messages with pins and reactions, guild channels, roles, seeded members, incoming webhooks and invites.

At a glance

Operations
250
Stateful operations
43
Stateful resources
6
Webhook events
0
Vendor API version
v10
Verification
Spec-verified

How it works

Use Discord without calling Discord Inc.

Authorization: Bot MockBotToken.0123456789abcdef

State

Resources that remember

Writes persist per caller, so a create followed by a read returns what you created.

ResourceOperations
Messages14
Channels5
Roles5
Members8
Webhooks8
Invites4

Webhooks

Events your handlers can receive

This API sends no webhooks.

Coverage

250 operations

43 of them are stateful. The largest groups:

GroupOperations
Other operations206
Messages14
Members8
Webhooks8
Channels5
Roles5

Verification

Spec-verified

Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.

Source and limits

License, source and limits

Each collection holds up to 1 MiB of objects per bot token; writes beyond that are dropped (x-maxoperf-vs-state: capacity). One guild (1000000000000000001) with its channels, roles, members and the bot user is seeded; guilds and users cannot be created. Ids are 19-digit snowflakes (timestamp plus a per-token counter) that sort by creation order. Messages echo content, tts and embeds (title, description, url, color, fields); other embed parts, attachments, mentions, components, threads and the around cursor are not modelled, bulk-delete accepts any ids, and the cursors before/after only work with ids that still exist. Only the bot reacts to messages, so deleting a user reaction removes the whole emoji reaction. Incoming webhooks keep their execute URL under /api/v10 and, like every call, need the bot Authorization header so the mock can find the state; a wrong token answers 50027. The pack emits no outbound webhooks: Discord signs webhook events and interactions with Ed25519 using the application key pair, which the mock cannot reproduce. Rate limits (429) are never produced.

MaxoPerf is not affiliated with, endorsed by, or sponsored by Discord Inc. Discord is a trademark of its owner.