| @@ -9,7 +9,7 @@ namespace Discord | |||||
| /// <summary> | /// <summary> | ||||
| /// A struct representing a forum channel tag. | /// A struct representing a forum channel tag. | ||||
| /// </summary> | /// </summary> | ||||
| public struct ForumTag | |||||
| public struct ForumTag : ISnowflakeEntity | |||||
| { | { | ||||
| /// <summary> | /// <summary> | ||||
| /// Gets the Id of the tag. | /// Gets the Id of the tag. | ||||
| @@ -32,6 +32,11 @@ namespace Discord | |||||
| /// </summary> | /// </summary> | ||||
| public bool Moderated { get; } | public bool Moderated { get; } | ||||
| /// <summary> | |||||
| /// Gets when the tag was created. | |||||
| /// </summary> | |||||
| public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id); | |||||
| internal ForumTag(ulong id, string name, ulong? emojiId, string emojiName, bool moderated) | internal ForumTag(ulong id, string name, ulong? emojiId, string emojiName, bool moderated) | ||||
| { | { | ||||
| if (emojiId.HasValue && emojiId.Value != 0) | if (emojiId.HasValue && emojiId.Value != 0) | ||||