BillingManager
classe · Source
Manages the API methods of a data model.
Extends: CachedManager
Properties
paymentSources
All the payment sources of the client Source
guildBoosts
All the guild boosts of the client Source
currentSubscription
The current subscription of the client Source
_cache
The private cache of items for this manager. Source
cache
The cache of items for this manager. Source
holds
The data structure belonging to this manager. Source
client
The client that instantiated this Manager Source
Methods
fetchPaymentSources
Fetches all the payment sources of the client Returns: Collection<Snowflake, Object>Source
fetchGuildBoosts
Fetches all the guild boosts of the client Returns: Collection<Snowflake, GuildBoost>Source
fetchCurrentSubscription
Fetches the current subscription of the client Returns: Collection<Snowflake, Object>Source
resolve
Resolves a data entry to a data Object. Parameters
| Name | Type | Description |
|---|---|---|
idOrInstance | string | Object | The id or instance of something in this Manager |
Returns: Object — An instance from this Manager Source
resolveId
Resolves a data entry to an instance id. Parameters
| Name | Type | Description |
|---|---|---|
idOrInstance | string | Object | The id or instance of something in this Manager |
Returns: SnowflakeSource