ChannelCacheOptions

ChannelCacheOptions

Represents the cache options for a channel. All options are enabled by default.

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:
TypeError

setContentCaching(option)

Description:
  • Sets whether to cache messages or not

Source:
Parameters:
Name Type Description
option Boolean

The option to set.

Throws:
TypeError

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:
TypeError

setFileCaching(option)

Description:
  • Sets whether to cache messages or not

Source:
Parameters:
Name Type Description
option Boolean

The option to set.

Throws:
TypeError

setMessageCaching(option)

Description:
  • Sets whether to cache messages or not.

Source:
Parameters:
Name Type Description
option Boolean

Whether to cache messages or not.

Throws:
TypeError

setPollCaching(option)

Description:
  • Sets whether to cache messages or not

Source:
Parameters:
Name Type Description
option Boolean

The option to set.

Throws:
TypeError

setReactionCaching(option)

Description:
  • Sets whether to cache messages or not

Source:
Parameters:
Name Type Description
option Boolean

The option to set.

Throws:
TypeError

setReferenceCaching(option)

Description:
  • Sets whether to cache messages or not

Source:
Parameters:
Name Type Description
option Boolean

The option to set.

Throws:
TypeError

setStickerCaching(option)

Description:
  • Sets whether to cache messages or not

Source:
Parameters:
Name Type Description
option Boolean

The option to set.

Throws:
TypeError

setWebhookCaching(option)

Description:
  • Sets whether to cache messages or not

Source:
Parameters:
Name Type Description
option Boolean

The option to set.

Throws:
TypeError

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: