feature: Add user public flags (#1722)
This commit is contained in:
@@ -21,6 +21,8 @@ namespace Discord.Rest
|
||||
public ushort DiscriminatorValue { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public string AvatarId { get; private set; }
|
||||
/// <inheritdoc />
|
||||
public UserProperties? PublicFlags { get; private set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id);
|
||||
@@ -65,6 +67,8 @@ namespace Discord.Rest
|
||||
IsBot = model.Bot.Value;
|
||||
if (model.Username.IsSpecified)
|
||||
Username = model.Username.Value;
|
||||
if (model.PublicFlags.IsSpecified)
|
||||
PublicFlags = model.PublicFlags.Value;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user