Class ForumPostTag
Represents a discord forum post tag.
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public class ForumPostTag : SnowflakeObject, IEquatable<ForumPostTag>
Properties
| Improve this Doc View SourceEmojiId
Gets the emoji id of the forum post tag.
Declaration
public ulong? EmojiId { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Moderated
Gets whether the tag can only be used by moderators.
Declaration
public bool Moderated { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets the name of this forum post tag.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
UnicodeEmoji
Gets the unicode emoji.
Declaration
public DiscordEmoji UnicodeEmoji { get; }
Property Value
Type | Description |
---|---|
DiscordEmoji |
Methods
| Improve this Doc View SourceEquals(ForumPostTag)
Checks whether this ForumPostTag is equal to another ForumPostTag.
Declaration
public bool Equals(ForumPostTag e)
Parameters
Type | Name | Description |
---|---|---|
ForumPostTag | e | ForumPostTag to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the ForumPostTag is equal to this ForumPostTag. |
Equals(Object)
Checks whether this ForumPostTag is equal to another object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the object is equal to this ForumPostTag. |
Overrides
GetHashCode()
Gets the hash code for this ForumPostTag.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this ForumPostTag. |
Overrides
Operators
| Improve this Doc View SourceEquality(ForumPostTag, ForumPostTag)
Gets whether the two ForumPostTag objects are equal.
Declaration
public static bool operator ==(ForumPostTag e1, ForumPostTag e2)
Parameters
Type | Name | Description |
---|---|---|
ForumPostTag | e1 | First forum post tag to compare. |
ForumPostTag | e2 | Second forum post tag to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the two forum post tags are equal. |
Inequality(ForumPostTag, ForumPostTag)
Gets whether the two DiscordEmoji objects are not equal.
Declaration
public static bool operator !=(ForumPostTag e1, ForumPostTag e2)
Parameters
Type | Name | Description |
---|---|---|
ForumPostTag | e1 | First forum post tag to compare. |
ForumPostTag | e2 | Second forum post tag to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the two forum post tags are not equal. |