We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a56bc commit 161a91eCopy full SHA for 161a91e
src/Discord.Net.Core/Entities/Interactions/Autocomplete/AutocompleteResult.cs
@@ -46,6 +46,9 @@ public object Value
46
if (value is not string && !value.IsNumericType())
47
throw new ArgumentException($"{nameof(value)} must be a numeric type or a string! Value: \"{value}\"");
48
49
+ if (value is string stringValue)
50
+ Preconditions.AtMost(stringValue.Length, 100, nameof(Value));
51
+
52
_value = value;
53
}
54
0 commit comments