Monetization
userEntitlements
$userEntitlements
Lists the active Discord entitlements (purchases and subscriptions) of a user and/or a server, one value per right. Bot Creator function, not in the official BDFD wiki.
Syntax
$userEntitlements[(userID);(guildID);(separator);(property)]
Parameters
| Parameter | Description |
|---|---|
userID |
Optional. The user. Empty: the author of the run, unless a server is given. |
guildID |
Optional. The server (a server subscription). |
separator |
Optional. Text placed between two values, , by default. |
property |
Optional. skuID (default), id, type, userID, guildID, startsAt, endsAt (Unix seconds or never), consumed or json. |
Return Value
- The values joined by the separator.
Example
$userEntitlements[$authorID;;, ;skuID]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.