Browse Source

add clarification to TreatAsRegex prop documentation.

pull/2557/head
Cenngo 2 years ago
parent
commit
6eab5878a7
2 changed files with 7 additions and 1 deletions
  1. +4
    -1
      src/Discord.Net.Interactions/Attributes/Commands/ComponentInteractionAttribute.cs
  2. +3
    -0
      src/Discord.Net.Interactions/Attributes/Commands/ModalInteractionAttribute.cs

+ 4
- 1
src/Discord.Net.Interactions/Attributes/Commands/ComponentInteractionAttribute.cs View File

@@ -30,8 +30,11 @@ namespace Discord.Interactions
public RunMode RunMode { get; } public RunMode RunMode { get; }


/// <summary> /// <summary>
/// Gets or sets whether the <see cref="CustomId"/> should be treated as a raw Regex pattern.
/// Gets or sets whether the <see cref="CustomId"/> should be treated as a raw Regex pattern.
/// </summary> /// </summary>
/// <remarks>
/// <see langword="false"/> defaults to the pattern used before 3.9.0.
/// </remarks>
public bool TreatAsRegex { get; set; } = false; public bool TreatAsRegex { get; set; } = false;


/// <summary> /// <summary>


+ 3
- 0
src/Discord.Net.Interactions/Attributes/Commands/ModalInteractionAttribute.cs View File

@@ -31,6 +31,9 @@ namespace Discord.Interactions
/// <summary> /// <summary>
/// Gets or sets whether the <see cref="CustomId"/> should be treated as a raw Regex pattern. /// Gets or sets whether the <see cref="CustomId"/> should be treated as a raw Regex pattern.
/// </summary> /// </summary>
/// <remarks>
/// <see langword="false"/> defaults to the pattern used before 3.9.0.
/// </remarks>
public bool TreatAsRegex { get; set; } = false; public bool TreatAsRegex { get; set; } = false;


/// <summary> /// <summary>


Loading…
Cancel
Save