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
Forwarded the parse error if a command search has only one match
tags/1.0-rc
RogueException
9 years ago
parent
ee04e1ddcc
commit
079d9d487d
1 changed files
with
6 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-1
src/Discord.Net.Commands/CommandService.cs
+ 6
- 1
src/Discord.Net.Commands/CommandService.cs
View File
@@ -249,7 +249,12 @@ namespace Discord.Commands
{
var parseResult = await commands[i].Parse(message, searchResult);
if (!parseResult.IsSuccess)
continue;
{
if (commands.Count == 1)
return parseResult;
else
continue;
}
var executeResult = await commands[i].Execute(message, parseResult);
return executeResult;
}
Write
Preview
Loading…
Cancel
Save