Skip to content

Commit 503d32a

Browse files
quinchslhjt
andauthored
Update interaction summaries (#2099)
* init * Update RestMessageComponentData.cs * Update src/Discord.Net.Rest/Entities/Interactions/RestApplicationCommandOption.cs Co-authored-by: Jared L <[email protected]> * Update src/Discord.Net.Rest/Entities/Interactions/RestApplicationCommandOption.cs Co-authored-by: Jared L <[email protected]> * Update src/Discord.Net.WebSocket/Entities/Interaction/SocketBaseCommand/SocketApplicationCommand.cs Co-authored-by: Jared L <[email protected]> * Update src/Discord.Net.WebSocket/Entities/Interaction/SocketBaseCommand/SocketApplicationCommand.cs Co-authored-by: Jared L <[email protected]> Co-authored-by: Jared L <[email protected]>
1 parent 69da238 commit 503d32a

File tree

22 files changed

+51
-99
lines changed

22 files changed

+51
-99
lines changed

src/Discord.Net.Core/Entities/Interactions/IDiscordInteraction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ public interface IDiscordInteraction : ISnowflakeEntity
5050
IUser User { get; }
5151

5252
/// <summary>
53-
/// The preferred locale of the invoking User.
53+
/// Gets the preferred locale of the invoking User.
5454
/// </summary>
5555
string UserLocale { get; }
5656

5757
/// <summary>
58-
/// The preferred locale of the guild this interaction was executed in. <see cref="null"/> if not executed in a guild.
58+
/// Gets the preferred locale of the guild this interaction was executed in. <see cref="null"/> if not executed in a guild.
5959
/// </summary>
6060
/// <remarks>
6161
/// Non-community guilds (With no locale setting available) will have en-US as the default value sent by Discord.

src/Discord.Net.Rest/Entities/Interactions/CommandBase/RestCommandBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public ulong CommandId
2828
=> Data.Id;
2929

3030
/// <summary>
31-
/// The data associated with this interaction.
31+
/// Gets the data associated with this interaction.
3232
/// </summary>
3333
internal new RestCommandBaseData Data { get; private set; }
3434

src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/MessageCommands/RestMessageCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Discord.Rest
1010
public class RestMessageCommand : RestCommandBase, IMessageCommandInteraction, IDiscordInteraction
1111
{
1212
/// <summary>
13-
/// The data associated with this interaction.
13+
/// Gets the data associated with this interaction.
1414
/// </summary>
1515
public new RestMessageCommandData Data { get; private set; }
1616

src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/MessageCommands/RestMessageCommandData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public RestMessage Message
2020

2121
/// <inheritdoc/>
2222
/// <remarks>
23-
/// <b>Note</b> Not implemented for <see cref="SocketMessageCommandData"/>
23+
/// <b>Note</b> Not implemented for <see cref="RestMessageCommandData"/>
2424
/// </remarks>
2525
public override IReadOnlyCollection<IApplicationCommandInteractionDataOption> Options
2626
=> throw new System.NotImplementedException();

src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/UserCommands/RestUserCommandData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public RestUser Member
1818

1919
/// <inheritdoc/>
2020
/// <remarks>
21-
/// <b>Note</b> Not implemented for <see cref="SocketUserCommandData"/>
21+
/// <b>Note</b> Not implemented for <see cref="RestUserCommandData"/>
2222
/// </remarks>
2323
public override IReadOnlyCollection<IApplicationCommandInteractionDataOption> Options
2424
=> throw new System.NotImplementedException();

src/Discord.Net.Rest/Entities/Interactions/MessageComponents/RestMessageComponentData.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,13 @@ namespace Discord.Rest
1212
/// </summary>
1313
public class RestMessageComponentData : IComponentInteractionData, IDiscordInteractionData
1414
{
15-
/// <summary>
16-
/// Gets the components Custom Id that was clicked.
17-
/// </summary>
15+
/// <inheritdoc/>
1816
public string CustomId { get; }
1917

20-
/// <summary>
21-
/// Gets the type of the component clicked.
22-
/// </summary>
18+
/// <inheritdoc/>
2319
public ComponentType Type { get; }
2420

25-
/// <summary>
26-
/// Gets the value(s) of a <see cref="SelectMenuComponent"/> interaction response.
27-
/// </summary>
21+
/// <inheritdoc/>
2822
public IReadOnlyCollection<string> Values { get; }
2923

3024
/// <inheritdoc/>

src/Discord.Net.Rest/Entities/Interactions/RestApplicationCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public abstract class RestApplicationCommand : RestEntity<ulong>, IApplicationCo
2828
public bool IsDefaultPermission { get; private set; }
2929

3030
/// <summary>
31-
/// The options of this command.
31+
/// Gets a collection of options for this command.
3232
/// </summary>
3333
public IReadOnlyCollection<RestApplicationCommandOption> Options { get; private set; }
3434

src/Discord.Net.Rest/Entities/Interactions/RestApplicationCommandOption.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,16 @@ public class RestApplicationCommandOption : IApplicationCommandOption
3636
public double? MaxValue { get; private set; }
3737

3838
/// <summary>
39-
/// A collection of <see cref="RestApplicationCommandChoice"/>'s for this command.
39+
/// Gets a collection of <see cref="RestApplicationCommandChoice"/>s for this command.
4040
/// </summary>
4141
public IReadOnlyCollection<RestApplicationCommandChoice> Choices { get; private set; }
4242

4343
/// <summary>
44-
/// A collection of <see cref="RestApplicationCommandOption"/>'s for this command.
44+
/// Gets a collection of <see cref="RestApplicationCommandOption"/>s for this command.
4545
/// </summary>
4646
public IReadOnlyCollection<RestApplicationCommandOption> Options { get; private set; }
4747

48-
/// <summary>
49-
/// The allowed channel types for this option.
50-
/// </summary>
48+
/// <inheritdoc/>
5149
public IReadOnlyCollection<ChannelType> ChannelTypes { get; private set; }
5250

5351
internal RestApplicationCommandOption() { }

src/Discord.Net.Rest/Entities/Interactions/RestGuildCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Discord.Rest
1010
public class RestGuildCommand : RestApplicationCommand
1111
{
1212
/// <summary>
13-
/// The guild Id where this command originates.
13+
/// Gets the guild Id where this command originates.
1414
/// </summary>
1515
public ulong GuildId { get; private set; }
1616

src/Discord.Net.Rest/Entities/Interactions/RestInteraction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public abstract class RestInteraction : RestEntity<ulong>, IDiscordInteraction
4343
public DateTimeOffset CreatedAt { get; private set; }
4444

4545
/// <summary>
46-
/// <see langword="true"/> if the token is valid for replying to, otherwise <see langword="false"/>.
46+
/// Gets whether or not the token used to respond to this interaction is valid.
4747
/// </summary>
4848
public bool IsValidToken
4949
=> InteractionHelper.CanRespondOrFollowup(this);

0 commit comments

Comments
 (0)