GlobalStickerManager class
- Inheritance
-
- Object
- ReadOnlyManager<
GlobalSticker> - GlobalStickerManager
Constructors
-
GlobalStickerManager(CacheConfig<
GlobalSticker> config, NyxxRest client)
Properties
-
cache
→ Cache<
GlobalSticker> -
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
Methods
-
fetch(
Snowflake id) → Future< GlobalSticker> -
Fetch the item with the given
id
from the API.override -
fetchNitroStickerPacks(
) → Future< List< StickerPack> > -
fetchStickerPack(
Snowflake id) → Future< StickerPack> -
get(
Snowflake id) → Future< GlobalSticker> -
Get an item by its
id
from the cache if it exists, else fetch it from the API.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
Map< String, Object?> raw) → GlobalSticker -
Parse the
raw
data received from the API into an instance of the type of this manager.override -
parseStickerItem(
Map< String, Object?> raw) → StickerItem -
parseStickerPack(
Map< String, Object?> raw) → StickerPack -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
Snowflake id) → PartialGlobalSticker -
Return a partial instance of the entity with ID
id
containing no data.override