Interface IUser
- Namespace
- HeyBox
- Assembly
- HeyBox.Net.Core.dll
表示一个通用的用户。
public interface IUser : IEntity<uint>, IMentionable
- Inherited Members
Properties
Avatar
获取此用户的头像图像的 URL。
string? Avatar { get; }
Property Value
AvatarDecorationType
获取用户头像装饰类型。
string? AvatarDecorationType { get; }
Property Value
AvatarDecorationUrl
获取此用户的头像装饰图像的 URL。
string? AvatarDecorationUrl { get; }
Property Value
IsBot
获取此用户是否为 Bot。
bool? IsBot { get; }
Property Value
- bool?
Level
获取此用户的等级。
int? Level { get; }
Property Value
- int?
Username
获取此用户的用户名。
string? Username { get; }
Property Value
Methods
CreateDMChannel()
创建一个用于与此用户收发私信的频道。
IDMChannel CreateDMChannel()
Returns
- IDMChannel
与此用户相关的私信频道。