$hasPremium
$hasPremium
will check if the provided user or guild is subscribed to premium.
Usage
$hasPremium[skuID;id?;type?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
skuID | number | Your generated SKU ID. | true |
id? | number | User or guild ID. | false |
type? | string | Entitlement type. 1. user (default) 2. guild | false |
Example(s)
This will check if the provided user is subscribed to premium.
1client.command({2 name: "hasPremium",3 code: `4 $hasPremium[123456789;$authorID;user]5 $comment[Example value of SKU ID]6 `7});