Preparing search index...
The search index is not available
Oceanic
Oceanic
Entitlement
Class Entitlement
Represents an entitlement.
Hierarchy (
view full
)
BaseEntitlement
Entitlement
Index
Constructors
constructor
Properties
applicationID
client
consumed
deleted
ends
At
gift
Code
Flags
guildID
id
promotionID
skuID
starts
At
subscriptionID
type
userID
Accessors
created
At
Methods
consume
toJSON
to
String
generateID
get
Created
At
get
Discord
Epoch
Constructors
constructor
new
Entitlement
(
data
,
client
)
:
Entitlement
Parameters
data
:
RawEntitlement
client
:
Client
<
ClientEvents
>
Returns
Entitlement
Properties
applicationID
applicationID
:
string
client
client
:
Client
<
ClientEvents
>
consumed
consumed
:
boolean
deleted
deleted
:
boolean
ends
At
ends
At
:
Date
gift
Code
Flags
gift
Code
Flags
:
number
guildID
guildID
:
null
|
string
id
id
:
string
promotionID
promotionID
:
null
|
string
skuID
skuID
:
string
starts
At
starts
At
:
Date
subscriptionID
subscriptionID
:
string
type
type
:
EntitlementTypes
userID
userID
:
null
|
string
Accessors
created
At
get
createdAt
(
)
:
Date
Returns
Date
Methods
consume
consume
(
)
:
Promise
<
void
>
Mark this entitlement as consumed.
Returns
Promise
<
void
>
toJSON
toJSON
(
)
:
JSONEntitlement
Returns
JSONEntitlement
to
String
to
String
(
)
:
string
Returns
string
Static
generateID
generateID
(
timestamp
?
)
:
string
Parameters
timestamp
:
number
|
Date
= ...
Returns
string
Static
get
Created
At
get
Created
At
(
id
)
:
Date
Parameters
id
:
string
Returns
Date
Static
get
Discord
Epoch
get
Discord
Epoch
(
id
)
:
number
Parameters
id
:
string
Returns
number
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
applicationID
client
consumed
deleted
ends
At
gift
Code
Flags
guildID
id
promotionID
skuID
starts
At
subscriptionID
type
userID
created
At
consume
toJSON
to
String
generateID
get
Created
At
get
Discord
Epoch
Oceanic
Loading...
Represents an entitlement.