From 928b5d97574eda07b60c246fe9bccc93abe91c2b Mon Sep 17 00:00:00 2001 From: Cenk Ergen <57065323+Cenngo@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:38:19 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com> --- .../Interactions/ContextMenus/MessageCommandBuilder.cs | 2 +- .../Interactions/ContextMenus/UserCommandBuilder.cs | 2 +- .../Entities/Interactions/IApplicationCommandOption.cs | 8 ++++---- .../Interactions/IApplicationCommandOptionChoice.cs | 4 ++-- .../LocalizationManagers/ILocalizationManager.cs | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Discord.Net.Core/Entities/Interactions/ContextMenus/MessageCommandBuilder.cs b/src/Discord.Net.Core/Entities/Interactions/ContextMenus/MessageCommandBuilder.cs index ca6995b69..ed49c685d 100644 --- a/src/Discord.Net.Core/Entities/Interactions/ContextMenus/MessageCommandBuilder.cs +++ b/src/Discord.Net.Core/Entities/Interactions/ContextMenus/MessageCommandBuilder.cs @@ -100,7 +100,7 @@ namespace Discord /// /// Sets the collection. /// - /// Localization dictionary for the name field of this command. + /// The localization dictionary to use for the name field of this command. /// /// Thrown if is null. /// Thrown if any dictionary key is an invalid locale string. diff --git a/src/Discord.Net.Core/Entities/Interactions/ContextMenus/UserCommandBuilder.cs b/src/Discord.Net.Core/Entities/Interactions/ContextMenus/UserCommandBuilder.cs index 37469d6c3..d8bb2e056 100644 --- a/src/Discord.Net.Core/Entities/Interactions/ContextMenus/UserCommandBuilder.cs +++ b/src/Discord.Net.Core/Entities/Interactions/ContextMenus/UserCommandBuilder.cs @@ -98,7 +98,7 @@ namespace Discord /// /// Sets the collection. /// - /// Localization dictionary for the name field of this command. + /// The localization dictionary to use for the name field of this command. /// The current builder. /// Thrown if is null. /// Thrown if any dictionary key is an invalid locale string. diff --git a/src/Discord.Net.Core/Entities/Interactions/IApplicationCommandOption.cs b/src/Discord.Net.Core/Entities/Interactions/IApplicationCommandOption.cs index 72114fb53..7e8c93339 100644 --- a/src/Discord.Net.Core/Entities/Interactions/IApplicationCommandOption.cs +++ b/src/Discord.Net.Core/Entities/Interactions/IApplicationCommandOption.cs @@ -63,17 +63,17 @@ namespace Discord IReadOnlyCollection ChannelTypes { get; } /// - /// Gets the localization dictionary for the name field of this command. + /// Gets the localization dictionary for the name field of this command option. /// IReadOnlyDictionary NameLocalizations { get; } /// - /// Gets the localization dictionary for the description field of this command. + /// Gets the localization dictionary for the description field of this command option. /// IReadOnlyDictionary DescriptionLocalizations { get; } /// - /// Gets the localized name of this command. + /// Gets the localized name of this command option. /// /// /// Only returned when the `withLocalizations` query parameter is set to when requesting the command. @@ -81,7 +81,7 @@ namespace Discord string NameLocalized { get; } /// - /// Gets the localized description of this command. + /// Gets the localized description of this command option. /// /// /// Only returned when the `withLocalizations` query parameter is set to true when requesting the command. diff --git a/src/Discord.Net.Core/Entities/Interactions/IApplicationCommandOptionChoice.cs b/src/Discord.Net.Core/Entities/Interactions/IApplicationCommandOptionChoice.cs index df52f9cd6..3f76bae72 100644 --- a/src/Discord.Net.Core/Entities/Interactions/IApplicationCommandOptionChoice.cs +++ b/src/Discord.Net.Core/Entities/Interactions/IApplicationCommandOptionChoice.cs @@ -18,12 +18,12 @@ namespace Discord object Value { get; } /// - /// Gets the localization dictionary for the name field of this command. + /// Gets the localization dictionary for the name field of this command option. /// IReadOnlyDictionary NameLocalizations { get; } /// - /// Gets the localized name of this command. + /// Gets the localized name of this command option. /// /// /// Only returned when the `withLocalizations` query parameter is set to when requesting the command. diff --git a/src/Discord.Net.Interactions/LocalizationManagers/ILocalizationManager.cs b/src/Discord.Net.Interactions/LocalizationManagers/ILocalizationManager.cs index 1c2216fee..13b155292 100644 --- a/src/Discord.Net.Interactions/LocalizationManagers/ILocalizationManager.cs +++ b/src/Discord.Net.Interactions/LocalizationManagers/ILocalizationManager.cs @@ -5,7 +5,7 @@ using System.Threading.Tasks; namespace Discord.Interactions { /// - /// Respresents localization provider for Discord Application Commands. + /// Respresents a localization provider for Discord Application Commands. /// public interface ILocalizationManager {