From 45ec61e0deff9ec35fd6a5f39e16d73a6729d372 Mon Sep 17 00:00:00 2001 From: Cenk Ergen <57065323+Cenngo@users.noreply.github.com> Date: Wed, 6 Apr 2022 00:25:54 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Armano den Boef <68127614+Rozen4334@users.noreply.github.com> --- .../Interactions/IRouteMatchContainer.cs | 9 ++++++--- src/Discord.Net.Core/Interactions/IRouteSegmentMatch.cs | 7 +++++-- src/Discord.Net.Core/Interactions/RouteSegmentMatch.cs | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/Discord.Net.Core/Interactions/IRouteMatchContainer.cs b/src/Discord.Net.Core/Interactions/IRouteMatchContainer.cs index 3dbcd041e..f9a3a3183 100644 --- a/src/Discord.Net.Core/Interactions/IRouteMatchContainer.cs +++ b/src/Discord.Net.Core/Interactions/IRouteMatchContainer.cs @@ -3,17 +3,20 @@ using System.Collections.Generic; namespace Discord { /// - /// Represents a container for temporarily storing CustomId wild card matches of a command name. + /// Represents a container for temporarily storing CustomId wild card matches of a component. /// public interface IRouteMatchContainer { /// - /// Gets the collection of the captured route segments. + /// Gets the collection of captured route segments in this container. /// + /// + /// A collection of captured route segments. + /// IEnumerable SegmentMatches { get; } /// - /// Sets the propert + /// Sets the property of this container. /// /// The collection of captured route segments. void SetSegmentMatches(IEnumerable segmentMatches); diff --git a/src/Discord.Net.Core/Interactions/IRouteSegmentMatch.cs b/src/Discord.Net.Core/Interactions/IRouteSegmentMatch.cs index bf03573ba..675bd6754 100644 --- a/src/Discord.Net.Core/Interactions/IRouteSegmentMatch.cs +++ b/src/Discord.Net.Core/Interactions/IRouteSegmentMatch.cs @@ -1,13 +1,16 @@ namespace Discord { /// - /// Represents an object for storing CustomId a wild card match. + /// Represents an object for storing a CustomId wild card match. /// public interface IRouteSegmentMatch { /// - /// Gets the captured value. + /// Gets the captured value of this wild card match. /// + /// + /// The value of this wild card. + /// string Value { get; } } } diff --git a/src/Discord.Net.Core/Interactions/RouteSegmentMatch.cs b/src/Discord.Net.Core/Interactions/RouteSegmentMatch.cs index 1d9df3817..f1d80cfea 100644 --- a/src/Discord.Net.Core/Interactions/RouteSegmentMatch.cs +++ b/src/Discord.Net.Core/Interactions/RouteSegmentMatch.cs @@ -1,7 +1,7 @@ namespace Discord { /// - /// Represents an object for storing CustomId wild card matches. + /// Represents an object for storing a CustomId wild card match. /// internal record RouteSegmentMatch : IRouteSegmentMatch {