Reworked internal task engine for DiscordClient and WebSocket. Several other minor async fixes.
This commit is contained in:
@@ -93,7 +93,7 @@ namespace Discord.Commands
|
||||
}
|
||||
internal void SetRunFunc(Action<CommandEventArgs> func)
|
||||
{
|
||||
_runFunc = e => { func(e); return TaskHelper.CompletedTask; };
|
||||
_runFunc = TaskHelper.ToAsync(func);
|
||||
}
|
||||
internal Task Run(CommandEventArgs args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user