Skip to content

$hasPremium

$hasPremium will check if the provided user or guild is subscribed to premium.

Usage

$hasPremium[skuID;id?;type?]

Parameters

FieldTypeDescriptionRequired
skuIDnumberYour generated SKU ID.true
id?numberUser or guild ID.false
type?stringEntitlement type.
1. user (default)
2. guild
false

Example(s)

This will check if the provided user is subscribed to premium.

1
client.command({
2
name: "hasPremium",
3
code: `
4
$hasPremium[123456789;$authorID;user]
5
$comment[Example value of SKU ID]
6
`
7
});