Class DiscordStageInstance
Represents a Stage instance.
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public class DiscordStageInstance : SnowflakeObject, IEquatable<DiscordStageInstance>
Properties
| Improve this Doc View SourceChannelId
Gets id of the associated Stage channel.
Declaration
public ulong ChannelId { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
DiscoverableDisabled
Gets whether or not stage discovery is disabled.
Declaration
[Obsolete("Will be removed due to the discovery removal.", true)]
public bool DiscoverableDisabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Guild
Gets the guild to which this channel belongs.
Declaration
public DiscordGuild Guild { get; }
Property Value
Type | Description |
---|---|
DiscordGuild |
GuildId
Gets the guild id of the associated Stage channel.
Declaration
public ulong GuildId { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
PrivacyLevel
Gets the topic of the Stage instance.
Declaration
[Obsolete("Will be static due to the discovery removal.")]
public StagePrivacyLevel PrivacyLevel { get; }
Property Value
Type | Description |
---|---|
StagePrivacyLevel |
Topic
Gets the topic of the Stage instance.
Declaration
public string Topic { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(DiscordStageInstance)
Checks whether this DiscordStageInstance is equal to another DiscordStageInstance.
Declaration
public bool Equals(DiscordStageInstance e)
Parameters
Type | Name | Description |
---|---|---|
DiscordStageInstance | e | DiscordStageInstance to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the DiscordStageInstance is equal to this DiscordStageInstance. |
Equals(Object)
Checks whether this DiscordStageInstance 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 DiscordStageInstance. |
Overrides
GetHashCode()
Gets the hash code for this DiscordStageInstance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this DiscordStageInstance. |
Overrides
Operators
| Improve this Doc View SourceEquality(DiscordStageInstance, DiscordStageInstance)
Gets whether the two DiscordStageInstance objects are equal.
Declaration
public static bool operator ==(DiscordStageInstance e1, DiscordStageInstance e2)
Parameters
Type | Name | Description |
---|---|---|
DiscordStageInstance | e1 | First channel to compare. |
DiscordStageInstance | e2 | Second channel to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the two channels are equal. |
Inequality(DiscordStageInstance, DiscordStageInstance)
Gets whether the two DiscordStageInstance objects are not equal.
Declaration
public static bool operator !=(DiscordStageInstance e1, DiscordStageInstance e2)
Parameters
Type | Name | Description |
---|---|---|
DiscordStageInstance | e1 | First channel to compare. |
DiscordStageInstance | e2 | Second channel to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the two channels are not equal. |