diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index 02f1da5c3..99bdd3d40 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -32,7 +32,7 @@ namespace Discord.Commands internal readonly RunMode _defaultRunMode; internal readonly Logger _cmdLogger; internal readonly LogManager _logManager; - internal readonly Dictionary _quotationMarkAliasMap; + internal readonly IReadOnlyDictionary _quotationMarkAliasMap; public IEnumerable Modules => _moduleDefs.Select(x => x); public IEnumerable Commands => _moduleDefs.SelectMany(x => x.Commands); diff --git a/src/Discord.Net.Commands/CommandServiceConfig.cs b/src/Discord.Net.Commands/CommandServiceConfig.cs index 6de61f939..143b6fbb1 100644 --- a/src/Discord.Net.Commands/CommandServiceConfig.cs +++ b/src/Discord.Net.Commands/CommandServiceConfig.cs @@ -19,7 +19,7 @@ namespace Discord.Commands /// Collection of aliases that can wrap strings for command parsing. /// represents the opening quotation mark and the value is the corresponding closing mark. - public Dictionary QuotationMarkAliasMap { get; set; } + public IReadOnlyDictionary QuotationMarkAliasMap { get; set; } = new Dictionary() { {'\"', '\"' }, diff --git a/src/Discord.Net.Commands/Info/CommandInfo.cs b/src/Discord.Net.Commands/Info/CommandInfo.cs index 4dee863b5..a96e7decc 100644 --- a/src/Discord.Net.Commands/Info/CommandInfo.cs +++ b/src/Discord.Net.Commands/Info/CommandInfo.cs @@ -20,7 +20,7 @@ namespace Discord.Commands private readonly CommandService _commandService; private readonly Func _action; - internal readonly Dictionary _quotationAliases; + internal readonly IReadOnlyDictionary _quotationAliases; public ModuleInfo Module { get; } public string Name { get; }