- Preparing search index...
- The search index is not available
Ⓙ Jike SDK
Type Parameters
-
M extends boolean = boolean
Constructors
constructor
- new JikeUser<M>(client, username?, profile?): JikeUser<M>
-
Type Parameters
-
M extends boolean = boolean
Parameters
-
-
Optional
username: string
-
Properties
Private
#client
Private
Optional
#username
#username?: string
Optional
profile
Methods
follow
- follow(): Promise<void>
-
Returns Promise<void>
getId
- getId(): Promise<string>
-
Returns Promise<string>
用户 ID
getScreenName
- getScreenName(): Promise<string>
-
Returns Promise<string>
用户昵称
getUsername
- getUsername(): Promise<string>
-
Returns Promise<string>
用户名
isFollowing
- isFollowing(user, mode): Promise<boolean>
-
Parameters
-
user: string | JikeUser<boolean>
-
mode: "following" | "auto" | "follower"
Returns Promise<boolean>
mute
- mute(): Promise<void>
-
Returns Promise<void>
queryFollowers
- queryFollowers(option?): Promise<User[]>
-
Returns Promise<User[]>
queryFollowersWithTime
- queryFollowersWithTime(option?): Promise<FollowerWithTime[]>
-
queryFollowings
- queryFollowings(option?): Promise<User[]>
-
Returns Promise<User[]>
queryPersonalUpdate
- queryPersonalUpdate(option?): Promise<JikePostWithDetail[]>
-
queryProfile
- queryProfile(ignoreCache?): Promise<ApiResponses.Users.Profile<M>>
-
Parameters
-
ignoreCache: boolean = false
unfollow
- unfollow(option?): Promise<void>
-
Returns Promise<void>
unmute
- unmute(): Promise<void>
-
Returns Promise<void>
是否为自己