Skip to content

BillingManager ​

classe · Source

Manages the API methods of a data model.

Extends: CachedManager

Properties ​

paymentSources ​

paymentSources: Collection<Snowflake, Object>

All the payment sources of the client Source

guildBoosts ​

guildBoosts: Collection<Snowflake, GuildBoost>

All the guild boosts of the client Source

currentSubscription ​

currentSubscription: Collection<Snowflake, Object>

The current subscription of the client Source

_cache ​

readonly · private

_cache: Collection

The private cache of items for this manager. Source

cache ​

abstract

cache: Collection

The cache of items for this manager. Source

holds ​

readonly · private

holds: function

The data structure belonging to this manager. Source

client ​

readonly

client: Client

The client that instantiated this Manager Source

Methods ​

fetchPaymentSources ​

async

async fetchPaymentSources(): Collection<Snowflake, Object>

Fetches all the payment sources of the client Returns: Collection<Snowflake, Object>Source

fetchGuildBoosts ​

async

async fetchGuildBoosts(): Collection<Snowflake, GuildBoost>

Fetches all the guild boosts of the client Returns: Collection<Snowflake, GuildBoost>Source

fetchCurrentSubscription ​

async

async fetchCurrentSubscription(): Collection<Snowflake, Object>

Fetches the current subscription of the client Returns: Collection<Snowflake, Object>Source

resolve ​

resolve(idOrInstance: string | Object): Object

Resolves a data entry to a data Object. Parameters

NameTypeDescription
idOrInstancestring | ObjectThe id or instance of something in this Manager

Returns: Object — An instance from this Manager Source

resolveId ​

resolveId(idOrInstance: string | Object): Snowflake

Resolves a data entry to an instance id. Parameters

NameTypeDescription
idOrInstancestring | ObjectThe id or instance of something in this Manager

Returns: SnowflakeSource

Unofficial software. Not affiliated with or supported by Discord.