Search
Preparing search index...
The search index is not available
Detritus Client
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Detritus Client
structures/gift
Gift
Class Gift
Discord Nitro Gift Structure
Hierarchy
BaseStructure
Gift
Index
Constructors
constructor
Properties
_keys
_keys
Merge
application
Id
client
code
expires
At
max
Uses
redeemed
sku
Id
store
Listing
subscription
Plan
subscription
Plan
Id
user
uses
Accessors
is
Clone
long
Url
shard
Id
url
Methods
[custom]
_get
From
Snake
_set
From
Snake
clone
difference
differences
differences
Between
fetch
has
Difference
has
Differences
has
Differences
Between
merge
merge
Value
redeem
toJSON
Constructors
constructor
new
Gift
(
client
:
ShardClient
, data
:
BaseStructureData
, isClone
?:
boolean
)
:
Gift
Parameters
client:
ShardClient
data:
BaseStructureData
Optional
isClone:
boolean
Returns
Gift
Properties
Readonly
_keys
_keys
:
BaseSet
<
string
>
= ...
Readonly
_keys
Merge
_keys
Merge
:
BaseSet
<
string
>
= ...
application
Id
application
Id
:
string
= ''
Readonly
client
client
:
ShardClient
code
code
:
string
= ''
expires
At
expires
At
:
Date
max
Uses
max
Uses
:
number
= 0
redeemed
redeemed
:
boolean
= false
sku
Id
sku
Id
:
string
= ''
Optional
store
Listing
store
Listing
:
StoreListing
Optional
subscription
Plan
subscription
Plan
:
SubscriptionPlan
subscription
Plan
Id
subscription
Plan
Id
:
string
= ''
user
user
:
User
uses
uses
:
number
= 0
Accessors
is
Clone
get
isClone
(
)
:
boolean
Returns
boolean
long
Url
get
longUrl
(
)
:
string
Returns
string
shard
Id
get
shardId
(
)
:
number
Returns
number
url
get
url
(
)
:
string
Returns
string
Methods
[custom]
[custom]
(
)
:
object
Returns
object
_get
From
Snake
_get
From
Snake
(
key
:
string
)
:
any
Parameters
key:
string
Returns
any
_set
From
Snake
_set
From
Snake
(
key
:
string
, value
:
any
)
:
any
Parameters
key:
string
value:
any
Returns
any
clone
clone
(
)
:
Gift
Returns
Gift
difference
difference
(
key
:
string
, value
:
any
)
:
[
boolean
,
any
]
Parameters
key:
string
value:
any
Returns
[
boolean
,
any
]
differences
differences
(
data
?:
BaseStructureData
)
:
null
|
object
Parameters
Optional
data:
BaseStructureData
Returns
null
|
object
differences
Between
differences
Between
(
structure
:
Structure
)
:
null
|
object
Parameters
structure:
Structure
Returns
null
|
object
fetch
fetch
(
options
:
FetchGiftCode
)
:
Promise
<
Gift
>
Parameters
options:
FetchGiftCode
Returns
Promise
<
Gift
>
has
Difference
has
Difference
(
key
:
string
, value
:
any
)
:
boolean
Parameters
key:
string
value:
any
Returns
boolean
has
Differences
has
Differences
(
data
?:
BaseStructureData
)
:
boolean
Parameters
Optional
data:
BaseStructureData
Returns
boolean
has
Differences
Between
has
Differences
Between
(
structure
:
Structure
)
:
boolean
Parameters
structure:
Structure
Returns
boolean
merge
merge
(
data
?:
BaseStructureData
)
:
void
Parameters
Optional
data:
BaseStructureData
Returns
void
merge
Value
merge
Value
(
key
:
string
, value
:
any
)
:
void
Parameters
key:
string
value:
any
Returns
void
redeem
redeem
(
options
:
RedeemGiftCode
)
:
Promise
<
any
>
Parameters
options:
RedeemGiftCode
Returns
Promise
<
any
>
toJSON
toJSON
(
)
:
object
Returns
object
Exports
structures/gift
Gift
constructor
_keys
_keys
Merge
application
Id
client
code
expires
At
max
Uses
redeemed
sku
Id
store
Listing
subscription
Plan
subscription
Plan
Id
user
uses
is
Clone
long
Url
shard
Id
url
[custom]
_get
From
Snake
_set
From
Snake
clone
difference
differences
differences
Between
fetch
has
Difference
has
Differences
has
Differences
Between
merge
merge
Value
redeem
toJSON
Subscription
Plan
Generated using
TypeDoc
Discord Nitro Gift Structure