Table of Contents

Class RestUser

Namespace
HeyBox.Rest
Assembly
HeyBox.Net.Rest.dll

表示一个基于 REST 的用户。

public class RestUser : RestEntity<uint>, IUser, IEntity<uint>, IMentionable
Inheritance
RestUser
Implements
Derived
Inherited Members

Properties

Avatar

获取此用户的头像图像的 URL。

public string? Avatar { get; }

Property Value

string

AvatarDecorationType

获取用户头像装饰类型。

public string? AvatarDecorationType { get; }

Property Value

string

AvatarDecorationUrl

获取此用户的头像装饰图像的 URL。

public string? AvatarDecorationUrl { get; }

Property Value

string

IsBot

获取此用户是否为 Bot。

public bool? IsBot { get; }

Property Value

bool?

Level

获取此用户的等级。

public int? Level { get; }

Property Value

int?

Mention

获取一个用于提及此对象的格式化字符串。

public string Mention { get; }

Property Value

string

Username

获取此用户的用户名。

public string? Username { get; }

Property Value

string

Methods

CreateDMChannel()

创建一个用于与此用户收发私信的频道。

public RestDMChannel CreateDMChannel()

Returns

RestDMChannel

与此用户相关的私信频道。