Constructor
new ChannelCacheOptions(cache_options)
- Description:
Creates the cache options for a channel.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
cache_options |
Number | The preset cache options for this channel. |
Members
(readonly) attributeCaching :Boolean
- Description:
Returns whether to cache messages or not.
- Source:
Returns whether to cache messages or not.
Type:
- Boolean
(readonly) contentCaching :Boolean
- Description:
Returns whether to cache messages or not.
- Source:
Returns whether to cache messages or not.
Type:
- Boolean
(readonly) embedCaching :Boolean
- Description:
Returns whether to cache messages or not.
- Source:
Returns whether to cache messages or not.
Type:
- Boolean
(readonly) fileCaching :Boolean
- Description:
Returns whether to cache messages or not.
- Source:
Returns whether to cache messages or not.
Type:
- Boolean
(readonly) messageCaching :Boolean
- Description:
Returns whether to cache messages or not.
- Source:
Returns whether to cache messages or not.
Type:
- Boolean
(readonly) pollCaching :Boolean
- Description:
Returns whether to cache messages or not.
- Source:
Returns whether to cache messages or not.
Type:
- Boolean
(readonly) reactionCaching :Boolean
- Description:
Returns whether to cache messages or not.
- Source:
Returns whether to cache messages or not.
Type:
- Boolean
(readonly) referenceCaching :Boolean
- Description:
Returns whether to cache messages or not.
- Source:
Returns whether to cache messages or not.
Type:
- Boolean
(readonly) stickerCaching :Boolean
- Description:
Returns whether to cache messages or not.
- Source:
Returns whether to cache messages or not.
Type:
- Boolean
(readonly) webhookCaching :Boolean
- Description:
Returns whether to cache messages or not.
- Source:
Returns whether to cache messages or not.
Type:
- Boolean
Methods
setAttributeCaching(option)
- Description:
Sets whether to cache messages or not
- Source:
Parameters:
Name | Type | Description |
---|---|---|
option |
Boolean | The option to set. |
Throws:
setContentCaching(option)
- Description:
Sets whether to cache messages or not
- Source:
Parameters:
Name | Type | Description |
---|---|---|
option |
Boolean | The option to set. |
Throws:
setDisableAll() → {void}
- Description:
Disables all caching options.
- Source:
Returns:
- Type
- void
setEmbedCaching(option)
- Description:
Sets whether to cache messages or not
- Source:
Parameters:
Name | Type | Description |
---|---|---|
option |
Boolean | The option to set. |
Throws:
setFileCaching(option)
- Description:
Sets whether to cache messages or not
- Source:
Parameters:
Name | Type | Description |
---|---|---|
option |
Boolean | The option to set. |
Throws:
setMessageCaching(option)
- Description:
Sets whether to cache messages or not.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
option |
Boolean | Whether to cache messages or not. |
Throws:
setPollCaching(option)
- Description:
Sets whether to cache messages or not
- Source:
Parameters:
Name | Type | Description |
---|---|---|
option |
Boolean | The option to set. |
Throws:
setReactionCaching(option)
- Description:
Sets whether to cache messages or not
- Source:
Parameters:
Name | Type | Description |
---|---|---|
option |
Boolean | The option to set. |
Throws:
setReferenceCaching(option)
- Description:
Sets whether to cache messages or not
- Source:
Parameters:
Name | Type | Description |
---|---|---|
option |
Boolean | The option to set. |
Throws:
setStickerCaching(option)
- Description:
Sets whether to cache messages or not
- Source:
Parameters:
Name | Type | Description |
---|---|---|
option |
Boolean | The option to set. |
Throws:
setWebhookCaching(option)
- Description:
Sets whether to cache messages or not
- Source:
Parameters:
Name | Type | Description |
---|---|---|
option |
Boolean | The option to set. |
Throws:
toJSON(format) → {Object}
- Description:
Returns the JSON representation of this structure.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
format |
Number | The format to return the data in. |
Returns:
- Type
- Object
toString()
- Source: