Interface ISelfUser
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
Represents the logged-in Kook user.
public interface ISelfUser : IUser, IEntity<ulong>, IMentionable, IPresence
- Inherited Members
- Extension Methods
Properties
InvitedCount
TODO: To be documented.
int InvitedCount { get; }
Property Value
IsMobileVerified
Gets whether the mobile number of the logged-in user is verified.
bool IsMobileVerified { get; }
Property Value
Mobile
Gets the mobile number of the logged-in user.
string? Mobile { get; }
Property Value
MobilePrefix
Gets the mobile prefix of the logged-in user.
string? MobilePrefix { get; }
Property Value
Methods
StartPlayingAsync(IGame, RequestOptions?)
Starts a new game activity. After this operation, a game activity will be displayed on the currently connected user's profile.
Task StartPlayingAsync(IGame game, RequestOptions? options = null)
Parameters
game
IGameThe game to be played.
options
RequestOptionsThe options to be used when sending the request.
Returns
- Task
A task that represents the asynchronous operation for starting a game activity.
StartPlayingAsync(Music, RequestOptions?)
Starts a new music activity. After this operation, a music activity will be displayed on the currently connected user's profile.
Task StartPlayingAsync(Music music, RequestOptions? options = null)
Parameters
music
MusicThe music being listened to be showed.
options
RequestOptionsThe options to be used when sending the request.
Returns
- Task
A task that represents the asynchronous operation for starting a music activity.
StopPlayingAsync(ActivityType, RequestOptions?)
Stops an activity. After this operation, the activity on the currently connected user's profile will disappear.
Task StopPlayingAsync(ActivityType type, RequestOptions? options = null)
Parameters
type
ActivityTypeThe type of the activity to stop
options
RequestOptionsThe options to be used when sending the request.
Returns
- Task
A task that represents the asynchronous operation for stopping an activity.