Table of Contents

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

int

IsMobileVerified

Gets whether the mobile number of the logged-in user is verified.

bool IsMobileVerified { get; }

Property Value

bool

Mobile

Gets the mobile number of the logged-in user.

string? Mobile { get; }

Property Value

string

MobilePrefix

Gets the mobile prefix of the logged-in user.

string? MobilePrefix { get; }

Property Value

string

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 IGame

The game to be played.

options RequestOptions

The 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 Music

The music being listened to be showed.

options RequestOptions

The 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 ActivityType

The type of the activity to stop

options RequestOptions

The options to be used when sending the request.

Returns

Task

A task that represents the asynchronous operation for stopping an activity.