entitlements_create_test
entitlements_create_test
Section titled “entitlements_create_test”Category: monetization
Create a test entitlement (dev tool). Lets devs simulate that a user/guild owns a SKU.
When to use
Section titled “When to use”When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
application_id | string | yes | Your application/bot ID |
sku_id | string | yes | SKU to grant |
owner_id | string | yes | Guild ID (owner_type=1) or User ID (owner_type=2) |
owner_type | unknown | yes | 1 = guild, 2 = user |
Returns
Section titled “Returns”\{id, sku_id, application_id, type\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | Discord entitlement ID |
sku_id | string | yes | Discord SKU ID |
application_id | string | yes | Discord application ID |
type | integer | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | no |
| Open-world | yes |
| Confirmation required | no |
Source
Section titled “Source”packages/mcp-core/src/tools/monetization/entitlements_create_test.ts