Preparing search index...
The search index is not available
Documentation - v0.19.5
Documentation
@mtcute/dispatcher
filters
userStatus
Function userStatus
Create a filter for
UserStatusUpdate
by new user status
Param: statuses
Update type(s)
Link
User.Status
userStatus
<
T
extends
UserStatus
>
(
status
:
T
,
)
:
filters
.
UpdateFilter
<
UserStatusUpdate
,
{
lastOnline
:
T
extends
"offline"
?
Date
:
null
;
nextOffline
:
T
extends
"online"
?
Date
:
null
;
type
:
T
;
}
,
>
Type Parameters
T
extends
UserStatus
Parameters
status
:
T
Returns
filters
.
UpdateFilter
<
UserStatusUpdate
,
{
lastOnline
:
T
extends
"offline"
?
Date
:
null
;
nextOffline
:
T
extends
"online"
?
Date
:
null
;
type
:
T
;
}
,
>
userStatus
<
T
extends
UserStatus
[]
>
(
statuses
:
T
,
)
:
filters
.
UpdateFilter
<
UserStatusUpdate
,
{
type
:
T
[
number
]
}
>
Type Parameters
T
extends
UserStatus
[]
Parameters
statuses
:
T
Returns
filters
.
UpdateFilter
<
UserStatusUpdate
,
{
type
:
T
[
number
]
}
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation - v0.19.5
Loading...
Create a filter for UserStatusUpdate by new user status
Param: statuses
Update type(s)
Link
User.Status