Browse Source

Fix autocomplete result value

pull/1923/head
quin lynch 3 years ago
parent
commit
b8218a058b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Core/Entities/Interactions/AutocompleteResult.cs

+ 1
- 1
src/Discord.Net.Core/Entities/Interactions/AutocompleteResult.cs View File

@@ -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;


Loading…
Cancel
Save