diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index 9f6e66c20..2c7955028 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -35,6 +35,8 @@ namespace Discord.Commands _caseSensitive = config.CaseSensitiveCommands; _separatorChar = config.SeparatorChar; _defaultRunMode = config.DefaultRunMode; + if (_defaultRunMode == RunMode.Default) + throw new InvalidOperationException("The default run mode cannot be set to Default, it must be one of Sync, Mixed, or Async"); _moduleLock = new SemaphoreSlim(1, 1); _typedModuleDefs = new ConcurrentDictionary();