Fix issues with DefaultRunMode

For a command to use the DefaultRunMode, it must now have it's RunMode set to RunMode.Default (this is the default value on CommandAttribute now).
This commit is contained in:
Christopher F
2016-11-26 22:04:02 -05:00
parent 1be6f77efb
commit fb99b019a0
4 changed files with 4 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ namespace Discord.Commands
Summary = builder.Summary;
Remarks = builder.Remarks;
RunMode = builder.RunMode ?? service._defaultRunMode;
RunMode = (builder.RunMode == RunMode.Default ? service._defaultRunMode : builder.RunMode);
Priority = builder.Priority;
if (module.Aliases.Count != 0)