feature: Add role tags (#1721)

This commit is contained in:
Paulo
2020-12-23 12:46:27 -03:00
committed by GitHub
parent 5934c7949a
commit 6a62c4770c
7 changed files with 80 additions and 1 deletions

View File

@@ -36,6 +36,8 @@ namespace Discord.WebSocket
public GuildPermissions Permissions { get; private set; }
/// <inheritdoc />
public int Position { get; private set; }
/// <inheritdoc />
public RoleTags Tags { get; private set; }
/// <inheritdoc />
public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id);
@@ -71,6 +73,8 @@ namespace Discord.WebSocket
Position = model.Position;
Color = new Color(model.Color);
Permissions = new GuildPermissions(model.Permissions);
if (model.Tags.IsSpecified)
Tags = model.Tags.Value.ToEntity();
}
/// <inheritdoc />