From 6eab5878a7ddff4e949a90d446f2e3dfe2e9c506 Mon Sep 17 00:00:00 2001 From: Cenngo Date: Tue, 3 Jan 2023 22:39:43 +0300 Subject: [PATCH] add clarification to TreatAsRegex prop documentation. --- .../Attributes/Commands/ComponentInteractionAttribute.cs | 5 ++++- .../Attributes/Commands/ModalInteractionAttribute.cs | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.Interactions/Attributes/Commands/ComponentInteractionAttribute.cs b/src/Discord.Net.Interactions/Attributes/Commands/ComponentInteractionAttribute.cs index 823410cdf..ea3933f53 100644 --- a/src/Discord.Net.Interactions/Attributes/Commands/ComponentInteractionAttribute.cs +++ b/src/Discord.Net.Interactions/Attributes/Commands/ComponentInteractionAttribute.cs @@ -30,8 +30,11 @@ namespace Discord.Interactions public RunMode RunMode { get; } /// - /// Gets or sets whether the should be treated as a raw Regex pattern. + /// Gets or sets whether the should be treated as a raw Regex pattern. /// + /// + /// defaults to the pattern used before 3.9.0. + /// public bool TreatAsRegex { get; set; } = false; /// diff --git a/src/Discord.Net.Interactions/Attributes/Commands/ModalInteractionAttribute.cs b/src/Discord.Net.Interactions/Attributes/Commands/ModalInteractionAttribute.cs index f5df950bd..0e79952f3 100644 --- a/src/Discord.Net.Interactions/Attributes/Commands/ModalInteractionAttribute.cs +++ b/src/Discord.Net.Interactions/Attributes/Commands/ModalInteractionAttribute.cs @@ -31,6 +31,9 @@ namespace Discord.Interactions /// /// Gets or sets whether the should be treated as a raw Regex pattern. /// + /// + /// defaults to the pattern used before 3.9.0. + /// public bool TreatAsRegex { get; set; } = false; ///