MessageCachePolicy class

Inheritance

Constructors

MessageCachePolicy(CachePolicyPredicate<Message> predicate)
Constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent 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