Struct ForumTag
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
A struct representing a forum channel tag.
public readonly struct ForumTag : ISnowflakeEntity, IEntity<ulong>, IForumTag
- Implements
- Inherited Members
- Extension Methods
Properties
CreatedAt
Gets when the snowflake was created.
public DateTimeOffset CreatedAt { get; }
Property Value
- DateTimeOffset
A DateTimeOffset representing when the entity was first created.
Emoji
Gets the emoji of the tag or null if none is set.
public IEmote? Emoji { get; }
Property Value
Remarks
If the emoji is Emote only the Id will be populated. Use GetEmoteAsync(ulong, RequestOptions) to get the emoji.
Id
Gets the unique identifier for this object.
public ulong Id { get; }
Property Value
IsModerated
Gets whether this tag can only be added to or removed from threads by a member with the ManageThreads permission
public bool IsModerated { get; }
Property Value
Name
Gets the name of the tag.
public string Name { get; }
Property Value
Methods
Equals(ForumTag)
Gets whether supplied tag is equals to the current one.
public bool Equals(ForumTag tag)
Parameters
tag
ForumTag
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(ForumTag?, ForumTag?)
public static bool operator ==(ForumTag? left, ForumTag? right)
Parameters
Returns
operator !=(ForumTag?, ForumTag?)
public static bool operator !=(ForumTag? left, ForumTag? right)