Class DiscordGuildDirectoryEntry
Represents a discord guild directory channel.
Inherited Members
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public class DiscordGuildDirectoryEntry : DiscordChannel, IEquatable<DiscordChannel>, IEquatable<DiscordGuildDirectoryEntry>
Properties
| Improve this Doc View SourceDescription
Gets the description of the directory entry.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
PrimaryCategory
Gets the primary category of the directory entry.
Declaration
public DirectoryCategory PrimaryCategory { get; }
Property Value
Type | Description |
---|---|
DirectoryCategory |
Methods
| Improve this Doc View SourceEquals(DiscordGuildDirectoryEntry)
Checks whether this DiscordGuildDirectoryEntry is equal to another DiscordGuildDirectoryEntry.
Declaration
public bool Equals(DiscordGuildDirectoryEntry e)
Parameters
Type | Name | Description |
---|---|---|
DiscordGuildDirectoryEntry | e | DiscordGuildDirectoryEntry to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the DiscordGuildDirectoryEntry is equal to this DiscordGuildDirectoryEntry. |
Equals(Object)
Checks whether this DiscordGuildDirectoryEntry 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 DiscordGuildDirectoryEntry. |
Overrides
| Improve this Doc View SourceGetHashCode()
Gets the hash code for this DiscordGuildDirectoryEntry.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this DiscordGuildDirectoryEntry. |
Overrides
Operators
| Improve this Doc View SourceEquality(DiscordGuildDirectoryEntry, DiscordGuildDirectoryEntry)
Gets whether the two DiscordGuildDirectoryEntry objects are equal.
Declaration
public static bool operator ==(DiscordGuildDirectoryEntry e1, DiscordGuildDirectoryEntry e2)
Parameters
Type | Name | Description |
---|---|---|
DiscordGuildDirectoryEntry | e1 | First channel to compare. |
DiscordGuildDirectoryEntry | e2 | Second channel to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the two channels are equal. |
Inequality(DiscordGuildDirectoryEntry, DiscordGuildDirectoryEntry)
Gets whether the two DiscordGuildDirectoryEntry objects are not equal.
Declaration
public static bool operator !=(DiscordGuildDirectoryEntry e1, DiscordGuildDirectoryEntry e2)
Parameters
Type | Name | Description |
---|---|---|
DiscordGuildDirectoryEntry | e1 | First channel to compare. |
DiscordGuildDirectoryEntry | e2 | Second channel to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the two channels are not equal. |