GuildStickerManager class
- Inheritance
-
- Object
- ReadOnlyManager<
GuildSticker> - Manager<
GuildSticker> - GuildStickerManager
Constructors
-
GuildStickerManager(CacheConfig<
GuildSticker> config, NyxxRest client, {required Snowflake guildId})
Properties
-
cache
→ Cache<
GuildSticker> -
The cache for this manager.
finalinherited
- client → NyxxRest
-
The client this manager belongs to.
finalinherited
- guildId → Snowflake
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create(
covariant StickerBuilder builder, {String? auditLogReason}) → Future< GuildSticker> -
Create a new instance of the type of this manager.
override
-
delete(
Snowflake id, {String? auditLogReason}) → Future< void> -
Delete the item with the given
id
from the API.override -
fetch(
Snowflake id) → Future< GuildSticker> -
Fetch the item with the given
id
from the API.override -
get(
Snowflake id) → Future< GuildSticker> -
Get an item by its
id
from the cache if it exists, else fetch it from the API.inherited -
list(
) → Future< List< GuildSticker> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
Map< String, Object?> raw) → GuildSticker -
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
-
update(
Snowflake id, covariant StickerUpdateBuilder builder, {String? auditLogReason}) → Future< GuildSticker> -
Update the item with the given
id
in the API.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
Snowflake id) → PartialGuildSticker -
Return a partial instance of the entity with ID
id
containing no data.override