Browse Source

Add support for long in autocomplete option

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

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

@@ -57,6 +57,7 @@ namespace Discord
{ {
string str => str, string str => str,
int integer => integer, int integer => integer,
long lng => lng,
double number => number, double number => number,
_ => throw new ArgumentException($"Type {value.GetType().Name} cannot be set as a value! Only string, int, and double allowed!"), _ => throw new ArgumentException($"Type {value.GetType().Name} cannot be set as a value! Only string, int, and double allowed!"),
}; };


Loading…
Cancel
Save