MessageCachePolicy class Null safety

Inheritance

Constructors

MessageCachePolicy(CachePolicyPredicate<Message> predicate)
Constructor

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

and(CachePolicy<Message> other) CachePolicy<Message>
Convenience method to require other policy
inherited
canCache(Message entity) bool
Pure function which will decide based on given predicate if entity will be cached
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
or(CachePolicy<Message> other) CachePolicy<Message>
Convenience method to concatenate other policy
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

all CachePolicy<Message>
Cache all messages
final
def CachePolicy<Message>
Default policy is all
final
dmMessages CachePolicy<Message>
Cache only dm messages
final
guildMessages CachePolicy<Message>
Cache only guild messages
final
none CachePolicy<Message>
Do not any messages
final