[Feature] Add Role & Attachment flags (#2720)

* initial commit

* oops

* another typo -_-

* Update AttachmentFlags.cs

Made this on my phone lol

* Update AttachmentFlags.cs

* -line
This commit is contained in:
Misha133
2023-08-10 16:08:42 +03:00
committed by GitHub
parent 8cd4c1cb8e
commit a4217154f0
9 changed files with 150 additions and 56 deletions

View File

@@ -44,6 +44,9 @@ namespace Discord.WebSocket
/// <inheritdoc />
public RoleTags Tags { get; private set; }
/// <inheritdoc />
public RoleFlags Flags { get; private set; }
/// <inheritdoc />
public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id);
/// <summary>
@@ -82,6 +85,8 @@ namespace Discord.WebSocket
Position = model.Position;
Color = new Color(model.Color);
Permissions = new GuildPermissions(model.Permissions);
Flags = model.Flags;
if (model.Tags.IsSpecified)
Tags = model.Tags.Value.ToEntity();