From b8218a058b7b8d4beb6dc531c5637e3d9d2de803 Mon Sep 17 00:00:00 2001 From: quin lynch Date: Sun, 21 Nov 2021 10:30:29 -0400 Subject: [PATCH] Fix autocomplete result value --- .../Entities/Interactions/AutocompleteResult.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/Entities/Interactions/AutocompleteResult.cs b/src/Discord.Net.Core/Entities/Interactions/AutocompleteResult.cs index 78f2a7774..6b28a84f9 100644 --- a/src/Discord.Net.Core/Entities/Interactions/AutocompleteResult.cs +++ b/src/Discord.Net.Core/Entities/Interactions/AutocompleteResult.cs @@ -47,7 +47,7 @@ namespace Discord get => _value; set { - if (value is not string || !value.IsNumericType()) + if (value is not string && !value.IsNumericType()) throw new ArgumentException($"{nameof(value)} must be a numeric type or a string!"); _value = value;