SubscriptionManager class

Inheritance

Constructors

SubscriptionManager.new(CacheConfig<Subscription> config, NyxxRest client, {required Snowflake applicationId, required Snowflake skuId})

Properties

applicationId Snowflake
final
cache Cache<Subscription>
The cache for this manager.
finalinherited
client NyxxRest
The client this manager belongs to.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skuId Snowflake
final

Methods

fetch(Snowflake id) Future<Subscription>
Fetch the item with the given id from the API.
override
get(Snowflake id) Future<Subscription>
Get an item by its id from the cache if it exists, else fetch it from the API.
inherited
list({Snowflake? before, Snowflake? after, int? limit, Snowflake? userId}) Future<List<Subscription>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(Map<String, Object?> raw) Subscription
Parse the raw data received from the API into an instance of the type of this manager.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Snowflake id) PartialSubscription
Return a partial instance of the entity with ID id containing no data.
override