entitlements_create_test
Simulate a user or guild owning a SKU by creating a test entitlement, letting developers validate Discord monetization flows.
Instructions
Purpose: Create a test entitlement (dev tool). Lets devs simulate that a user/guild owns a SKU.
Returns: {id, sku_id, application_id, type}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"application_id": "<application_id>",
"sku_id": "<sku_id>",
"owner_id": "<owner_id>",
"owner_type": "<owner_type>"
},
"name": "entitlements_create_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku_id | Yes | SKU to grant | |
| owner_id | Yes | Guild ID (owner_type=1) or User ID (owner_type=2) | |
| owner_type | Yes | 1 = guild, 2 = user | |
| application_id | Yes | Your application/bot ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||