EmojiManager class

Inheritance

Constructors

EmojiManager(CacheConfig<Emoji> config, NyxxRest client, {required Snowflake guildId})

Properties

cache Cache<Emoji>
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 EmojiBuilder builder, {String? auditLogReason}) Future<GuildEmoji>
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<GuildEmoji>
Fetch the item with the given id from the API.
override
get(Snowflake id) Future<GuildEmoji>
Get an item by its id from the cache if it exists, else fetch it from the API.
override
list() Future<List<GuildEmoji>>
List the emojis in the guild.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(Map<String, Object?> raw) Emoji
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 EmojiUpdateBuilder builder, {String? auditLogReason}) Future<GuildEmoji>
Update the item with the given id in the API.
override

Operators

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