Monetization
entitlementCount
$entitlementCount
Counts the active Discord entitlements of a user or a server. Bot Creator extension (not in the official BDFD wiki). Purchases happen at Discord: create the SKU in the Discord developer portal (Monetization). A right is active when it is not deleted, already started and not ended. Without a user or server argument, the author of the run is checked.
Syntax
$entitlementCount[userID;serverID]
Parameters
| Parameter | Description |
|---|---|
userID |
Optional. The user. Empty: the author of the run, unless a server is given. |
serverID |
Optional. The server. |
Return Value
- Type: String
- A number (
0when there is none).
Examples
You have $entitlementCount active purchase(s).
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.