This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix autocomplete result value
pull/1923/head
quin lynch
3 years ago
parent
dea7ba9655
commit
b8218a058b
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
Write
Preview
Loading…
Cancel
Save