From 35a93960f3bccde23d9ed6e8b2080ab786cb9476 Mon Sep 17 00:00:00 2001 From: Misha133 Date: Tue, 20 Sep 2022 22:40:48 +0300 Subject: [PATCH] `ForumTag` inherits `ISnowflakeEntity` --- src/Discord.Net.Core/Entities/ForumTag.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/Entities/ForumTag.cs b/src/Discord.Net.Core/Entities/ForumTag.cs index 8c17453d5..aef983555 100644 --- a/src/Discord.Net.Core/Entities/ForumTag.cs +++ b/src/Discord.Net.Core/Entities/ForumTag.cs @@ -9,7 +9,7 @@ namespace Discord /// /// A struct representing a forum channel tag. /// - public struct ForumTag + public struct ForumTag : ISnowflakeEntity { /// /// Gets the Id of the tag. @@ -32,6 +32,11 @@ namespace Discord /// public bool Moderated { get; } + /// + /// Gets when the tag was created. + /// + public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id); + internal ForumTag(ulong id, string name, ulong? emojiId, string emojiName, bool moderated) { if (emojiId.HasValue && emojiId.Value != 0)