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.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bot MockBotToken.0123456789abcdef State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Messages | 14 |
| Channels | 5 |
| Roles | 5 |
| Members | 8 |
| Webhooks | 8 |
| Invites | 4 |
Webhooks
Events your handlers can receive
This API sends no webhooks.
Coverage
250 operations
43 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 206 |
| Messages | 14 |
| Members | 8 |
| Webhooks | 8 |
| Channels | 5 |
| Roles | 5 |
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
- Generated from the Discord Inc. API description, licensed under MIT.
- Discord Inc. API documentation
- Source specification
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.