Skip to content

Commit

Permalink
chore: make some properties of DiscordVoiceState public
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Jan 26, 2025
1 parent e61e795 commit a0b07c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions DisCatSharp.Docs/changelogs/v10/10_6_6.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ author: DisCatSharp Team
- [`DiscordMember.PrimaryGuild`](xref:DisCatSharp.Entities.DiscordMember.PrimaryGuild)
- [`DiscordRoleTags.GuildConnections`](xref:DisCatSharp.Entities.DiscordRoleTags.GuildConnections)
- [`DiscordRoleTags.PremiumSubscriber`](xref:DisCatSharp.Entities.DiscordRoleTags.PremiumSubscriber)
- [`DiscordFollowupMessageBuilder.IsVoiceMessage`](xref:DisCatSharp.Entities.DiscordFollowupMessageBuilder.IsVoiceMessage)
- [`DiscordInteractionResponseBuilder.IsVoiceMessage`](xref:DisCatSharp.Entities.DiscordInteractionResponseBuilder.IsVoiceMessage)
- [`DiscordAttachment.ClipParticipants`](xref:DisCatSharp.Entities.DiscordAttachment.ClipParticipants)
- [`DiscordAttachment.ClipCreatedAt`](xref:DisCatSharp.Entities.DiscordAttachment.ClipCreatedAt)
- [`DiscordMessage.ChannelType`](xref:DisCatSharp.Entities.DiscordMessage.ChannelType)
Expand All @@ -142,7 +140,7 @@ author: DisCatSharp Team
- [`DiscordSubscription.CanceledAt`](xref:DisCatSharp.Entities.DiscordSubscription.CanceledAt)
- [`DiscordSubscription.Country`](xref:DisCatSharp.Entities.DiscordSubscription.Country)
- [`DiscordUser.PrimaryGuild`](xref:DisCatSharp.Entities.DiscordUser.PrimaryGuild)
- [`DiscordVoiceState.Discoverable`](xref:DisCatSharp.Entities.DiscordVoiceState.Discoverable)
- [`DiscordApplication`](xref:DisCatSharp.Entities.DiscordApplication) got extended with additional properties, which are too many to list

#### Extended Enums
- [`ApplicationCommandType`](xref:DisCatSharp.Enums.ApplicationCommandType) `PrimaryEntryPoint`
Expand Down
12 changes: 6 additions & 6 deletions DisCatSharp/Entities/Voice/DiscordVoiceState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ internal DiscordVoiceState(DiscordMember m)
/// Gets ID of the guild this voice state is associated with.
/// </summary>
[JsonProperty("guild_id", NullValueHandling = NullValueHandling.Ignore)]
internal ulong? GuildId { get; set; }
public ulong? GuildId { get; set; }

/// <summary>
/// Gets the guild associated with this voice state.
Expand All @@ -86,7 +86,7 @@ public DiscordGuild? Guild
/// Gets ID of the channel this user is connected to.
/// </summary>
[JsonProperty("channel_id", NullValueHandling = NullValueHandling.Include)]
internal ulong? ChannelId { get; set; }
public ulong? ChannelId { get; set; }

/// <summary>
/// Gets the channel this user is connected to.
Expand All @@ -99,7 +99,7 @@ public DiscordChannel? Channel
/// Gets ID of the user to which this voice state belongs.
/// </summary>
[JsonProperty("user_id", NullValueHandling = NullValueHandling.Ignore)]
internal ulong UserId { get; set; }
public ulong UserId { get; set; }

/// <summary>
/// Gets the user associated with this voice state.
Expand All @@ -125,7 +125,7 @@ public DiscordUser User
/// Gets ID of the session of this voice state.
/// </summary>
[JsonProperty("session_id", NullValueHandling = NullValueHandling.Ignore)]
internal string SessionId { get; set; }
public string SessionId { get; set; }

/// <summary>
/// Gets whether this user is deafened.
Expand Down Expand Up @@ -173,7 +173,7 @@ public DiscordUser User
/// Gets the time at which this user requested to speak.
/// </summary>
[JsonProperty("request_to_speak_timestamp", NullValueHandling = NullValueHandling.Ignore)]
internal DateTimeOffset? RequestToSpeakTimestamp { get; set; }
public DateTimeOffset? RequestToSpeakTimestamp { get; set; }

/// <summary>
/// Gets the member this voice state belongs to.
Expand All @@ -197,7 +197,7 @@ public DiscordMember Member
/// Gets whether the voice state is discoverable through user activities.
/// </summary>
[JsonProperty("discoverable", NullValueHandling = NullValueHandling.Ignore)]
internal bool Discoverable { get; set; }
public bool Discoverable { get; set; }

/// <summary>
/// Gets a readable voice state string.
Expand Down

0 comments on commit a0b07c3

Please sign in to comment.