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:
@@ -37,7 +37,7 @@ namespace Discord.Commands
|
||||
Summary = builder.Summary;
|
||||
Remarks = builder.Remarks;
|
||||
|
||||
RunMode = builder.RunMode;
|
||||
RunMode = builder.RunMode ?? service._defaultRunMode;
|
||||
Priority = builder.Priority;
|
||||
|
||||
if (module.Aliases.Count != 0)
|
||||
|
||||
Reference in New Issue
Block a user