Browse Source

add notes about nullable properties

pull/2507/head
Misha133 2 years ago
parent
commit
7f31a7ba32
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/Discord.Net.Core/Entities/Interactions/MessageComponents/IComponentInteractionData.cs

+ 6
- 6
src/Discord.Net.Core/Entities/Interactions/MessageComponents/IComponentInteractionData.cs View File

@@ -18,27 +18,27 @@ namespace Discord
ComponentType Type { get; }

/// <summary>
/// Gets the value(s) of a <see cref="ComponentType.SelectMenu"/> interaction response.
/// Gets the value(s) of a <see cref="ComponentType.SelectMenu"/> interaction response. Null if select type is different.
/// </summary>
IReadOnlyCollection<string> Values { get; }

/// <summary>
/// Gets the channels(s) of a <see cref="ComponentType.ChannelSelect"/> interaction response.
/// </summary>
/// Gets the channels(s) of a <see cref="ComponentType.ChannelSelect"/> interaction response. Null if select type is different.
/// </summary>
IReadOnlyCollection<IChannel> Channels { get; }

/// <summary>
/// Gets the user(s) of a <see cref="ComponentType.UserSelect"/> or <see cref="ComponentType.MentionableSelect"/> interaction response.
/// Gets the user(s) of a <see cref="ComponentType.UserSelect"/> or <see cref="ComponentType.MentionableSelect"/> interaction response. Null if select type is different.
/// </summary>
IReadOnlyCollection<IUser> Users { get; }

/// <summary>
/// Gets the roles(s) of a <see cref="ComponentType.RoleSelect"/> or <see cref="ComponentType.MentionableSelect"/> interaction response.
/// Gets the roles(s) of a <see cref="ComponentType.RoleSelect"/> or <see cref="ComponentType.MentionableSelect"/> interaction response. Null if select type is different.
/// </summary>
IReadOnlyCollection<IRole> Roles { get; }

/// <summary>
/// Gets the guild member(s) of a <see cref="ComponentType.UserSelect"/> or <see cref="ComponentType.MentionableSelect"/> interaction response.
/// Gets the guild member(s) of a <see cref="ComponentType.UserSelect"/> or <see cref="ComponentType.MentionableSelect"/> interaction response. Null if type select is different.
/// </summary>
IReadOnlyCollection<IGuildUser> Members { get; }



Loading…
Cancel
Save