mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 07:14:50 +00:00
Add user_id field to UserStatus
This commit is contained in:
parent
79a9ddfab5
commit
4b04910197
1 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,9 @@ class UserStatus(Object):
|
||||||
"recently", "within_week", "within_month" or "long_time_ago" fields set.
|
"recently", "within_week", "within_month" or "long_time_ago" fields set.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
user_id (``int``):
|
||||||
|
User's id. Only available for UserStatus updates.
|
||||||
|
|
||||||
online (``bool``):
|
online (``bool``):
|
||||||
True if the user is online in this moment, None otherwise.
|
True if the user is online in this moment, None otherwise.
|
||||||
If True, the "date" field will be also set containing the online expiration date (i.e.: the date when a
|
If True, the "date" field will be also set containing the online expiration date (i.e.: the date when a
|
||||||
|
|
@ -62,6 +65,7 @@ class UserStatus(Object):
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
user_id: int = None,
|
||||||
online: bool = None,
|
online: bool = None,
|
||||||
offline: bool = None,
|
offline: bool = None,
|
||||||
date: int = None,
|
date: int = None,
|
||||||
|
|
@ -70,6 +74,7 @@ class UserStatus(Object):
|
||||||
within_month: bool = None,
|
within_month: bool = None,
|
||||||
long_time_ago: bool = None
|
long_time_ago: bool = None
|
||||||
):
|
):
|
||||||
|
self.user_id = user_id
|
||||||
self.online = online
|
self.online = online
|
||||||
self.offline = offline
|
self.offline = offline
|
||||||
self.date = date
|
self.date = date
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue