AnyCommandFilter<CTX extends Context> class
Filter that matches any bot command.
Constructors
- AnyCommandFilter.new()
-
Creates a filter that matches any bot command.
const
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(
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