Move TaskHelper to Shared folder
This commit is contained in:
@@ -61,11 +61,7 @@ namespace Discord.Commands
|
||||
}
|
||||
public CommandBuilder Do(Action<CommandEventArgs> func)
|
||||
{
|
||||
#if DNXCORE50
|
||||
_command.Handler = e => { func(e); return Task.CompletedTask; };
|
||||
#else
|
||||
_command.Handler = e => { func(e); return Task.Delay(0); };
|
||||
#endif
|
||||
_command.Handler = e => { func(e); return TaskHelper.CompletedTask; };
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"tags": [ "discord", "discordapp" ],
|
||||
"projectUrl": "https://github.com/RogueException/Discord.Net",
|
||||
"licenseUrl": "http://opensource.org/licenses/MIT",
|
||||
"compile": ["**/*.cs", "../Discord.Net/Shared/*.cs"],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/RogueException/Discord.Net"
|
||||
|
||||
Reference in New Issue
Block a user