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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user