Browse Source

Changed CommandServiceConfig constructor to public

Changed CommandServiceConfig constructor to public, so that it can be instantiated by projects implementing the library... so that commands can be registered.
pull/145/head
Tim Watkins GitHub 9 years ago
parent
commit
c2271ff6e2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/CommandServiceConfig.cs

+ 1
- 1
src/Discord.Net.Commands/CommandServiceConfig.cs View File

@@ -41,7 +41,7 @@ namespace Discord.Commands
/// <summary> Gets or sets whether a help function should be automatically generated. </summary> /// <summary> Gets or sets whether a help function should be automatically generated. </summary>
public HelpMode HelpMode { get; set; } = HelpMode.Disabled; public HelpMode HelpMode { get; set; } = HelpMode.Disabled;


internal CommandServiceConfig(CommandServiceConfigBuilder builder)
public CommandServiceConfig(CommandServiceConfigBuilder builder)
{ {
PrefixChar = builder.PrefixChar; PrefixChar = builder.PrefixChar;
AllowMentionPrefix = builder.AllowMentionPrefix; AllowMentionPrefix = builder.AllowMentionPrefix;


Loading…
Cancel
Save