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
Unknown overload should return UnknownCommand instead of ParseFailed
tags/1.0-rc
RogueException
9 years ago
parent
625f78504c
commit
0b25554c31
2 changed files
with
5 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-2
src/Discord.Net.Commands/CommandError.cs
+1
-1
src/Discord.Net.Commands/CommandService.cs
+ 4
- 2
src/Discord.Net.Commands/CommandError.cs
View File
@@ -14,8 +14,10 @@
ObjectNotFound,
MultipleMatches,
//Preconditions
UnmetPrecondition,
//Execute
Exception,
UnmetPrecondition
Exception
}
}
+ 1
- 1
src/Discord.Net.Commands/CommandService.cs
View File
@@ -233,7 +233,7 @@ namespace Discord.Commands
return executeResult;
}
return
ParseResult.FromError(CommandError.ParseFaile
d, "This input does not match any overload.");
return
SearchResult.FromError(CommandError.UnknownComman
d, "This input does not match any overload.");
}
}
}
Write
Preview
Loading…
Cancel
Save