From 18856a3d8f33d318f2abbf04edd66e89a8b78966 Mon Sep 17 00:00:00 2001 From: quin lynch Date: Thu, 7 Oct 2021 00:33:09 -0300 Subject: [PATCH] Rename Live and DiscoverableDisabled to IsDiscoverableDisabled and IsLive in IStageChannel --- .../Entities/Channels/IStageChannel.cs | 4 ++-- .../Entities/Channels/RestStageChannel.cs | 10 +++++----- .../Entities/Channels/SocketStageChannel.cs | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Discord.Net.Core/Entities/Channels/IStageChannel.cs b/src/Discord.Net.Core/Entities/Channels/IStageChannel.cs index 9e417a4f1..ff84262f0 100644 --- a/src/Discord.Net.Core/Entities/Channels/IStageChannel.cs +++ b/src/Discord.Net.Core/Entities/Channels/IStageChannel.cs @@ -30,7 +30,7 @@ namespace Discord /// /// if stage discovery is disabled, otherwise . /// - bool? DiscoverableDisabled { get; } + bool? IsDiscoverableDisabled { get; } /// /// when the stage is live, otherwise . @@ -38,7 +38,7 @@ namespace Discord /// /// If the stage isn't live then this property will be set to . /// - bool Live { get; } + bool IsLive { get; } /// /// Starts the stage, creating a stage instance. diff --git a/src/Discord.Net.Rest/Entities/Channels/RestStageChannel.cs b/src/Discord.Net.Rest/Entities/Channels/RestStageChannel.cs index 41877befc..721e2d780 100644 --- a/src/Discord.Net.Rest/Entities/Channels/RestStageChannel.cs +++ b/src/Discord.Net.Rest/Entities/Channels/RestStageChannel.cs @@ -20,10 +20,10 @@ namespace Discord.Rest public StagePrivacyLevel? PrivacyLevel { get; private set; } /// - public bool? DiscoverableDisabled { get; private set; } + public bool? IsDiscoverableDisabled { get; private set; } /// - public bool Live { get; private set; } + public bool IsLive { get; private set; } internal RestStageChannel(BaseDiscordClient discord, IGuild guild, ulong id) : base(discord, guild, id) { @@ -39,18 +39,18 @@ namespace Discord.Rest internal void Update(StageInstance model, bool isLive = false) { - Live = isLive; + IsLive = isLive; if(isLive) { Topic = model.Topic; PrivacyLevel = model.PrivacyLevel; - DiscoverableDisabled = model.DiscoverableDisabled; + IsDiscoverableDisabled = model.DiscoverableDisabled; } else { Topic = null; PrivacyLevel = null; - DiscoverableDisabled = null; + IsDiscoverableDisabled = null; } } diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketStageChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketStageChannel.cs index 1956a9b86..722589b50 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketStageChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketStageChannel.cs @@ -22,10 +22,10 @@ namespace Discord.WebSocket public StagePrivacyLevel? PrivacyLevel { get; private set; } /// - public bool? DiscoverableDisabled { get; private set; } + public bool? IsDiscoverableDisabled { get; private set; } /// - public bool Live { get; private set; } = false; + public bool IsLive { get; private set; } = false; /// /// Returns if the current user is a speaker within the stage, otherwise . @@ -62,18 +62,18 @@ namespace Discord.WebSocket internal void Update(StageInstance model, bool isLive = false) { - Live = isLive; + IsLive = isLive; if (isLive) { Topic = model.Topic; PrivacyLevel = model.PrivacyLevel; - DiscoverableDisabled = model.DiscoverableDisabled; + IsDiscoverableDisabled = model.DiscoverableDisabled; } else { Topic = null; PrivacyLevel = null; - DiscoverableDisabled = null; + IsDiscoverableDisabled = null; } }