UserFilter<CTX extends Context> class
Filter that matches messages from specific users.
Constructors
-
UserFilter.new(Set<
int> userIds) -
Creates a filter that matches specific users.
const
- UserFilter.single(int userId)
- Creates a filter that matches a single user.
Properties
Methods
-
and(
Filter< CTX> other) → Filter<CTX> -
Combines this filter with another using logical AND.
inherited
-
matches(
CTX ctx) → bool -
Tests if this filter matches the given context.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
not(
) → Filter< CTX> -
Creates a filter that matches the opposite of this filter.
inherited
-
or(
Filter< CTX> other) → Filter<CTX> -
Combines this filter with another using logical OR.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
Filter< CTX> other) → Filter<CTX> -
Combines this filter with another using logical AND.
inherited
-
operator +(
Filter< CTX> other) → Filter<CTX> -
Combines this filter with another using logical OR.
inherited
-
operator -(
Filter< CTX> other) → Filter<CTX> -
Creates a filter that matches
this
ANDnot the other
.inherited -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → Filter< CTX> -
Creates a filter that matches the opposite of this filter.
inherited