Add CommandServiceConfig, DefaultRunMode

This adds an (optional) CommandServiceConfig, as well as a DefaultRunMode for commands.

This resolves #368 (for commands where a RunMode is not explicitly specified, a custom default value should be used)
This commit is contained in:
Christopher F
2016-11-25 18:49:35 -05:00
parent 8ec80663f0
commit f9c5e229d0
5 changed files with 16 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ namespace Discord.Commands
public class CommandAttribute : Attribute
{
public string Text { get; }
public RunMode RunMode { get; set; } = RunMode.Sync;
public RunMode RunMode { get; set; }
public CommandAttribute()
{