MemberCachePolicy class

Cache policies for caching members

Inheritance

Constructors

MemberCachePolicy(CachePolicyPredicate<IMember> predicate)
Constructor

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

and(CachePolicy<IMember> other) CachePolicy<IMember>
Convenience method to require other policy
inherited
canCache(IMember 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<IMember> other) CachePolicy<IMember>
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<IMember>
Cache all members
final
def CachePolicy<IMember>
Default policy is owner or voice. So it caches guild owners and users in voice channels
final
none CachePolicy<IMember>
Do not cache members
final
online CachePolicy<IMember>
Cache members which have online status
final
owner CachePolicy<IMember>
Cache only member which are owner of guild
final
voice CachePolicy<IMember>
Cache only members which have voice state not null
final