|
|
@@ -34,8 +34,25 @@ namespace Discord.Commands |
|
|
|
/// </summary> |
|
|
|
public bool ThrowOnError { get; set; } = true; |
|
|
|
|
|
|
|
/// <summary> Collection of aliases that can wrap strings for command parsing. |
|
|
|
/// represents the opening quotation mark and the value is the corresponding closing mark.</summary> |
|
|
|
/// <summary> |
|
|
|
/// Collection of aliases for matching pairs of string delimiters. |
|
|
|
/// The dictionary stores the opening delimiter as a key, and the matching closing delimiter as the value. |
|
|
|
/// If no value is supplied <see cref="QuotationAliasUtils.GetDefaultAliasMap"/> will be used, which contains |
|
|
|
/// many regional equivalents. |
|
|
|
/// Only values that are specified in this map will be used as string delimiters, so if " is removed then |
|
|
|
/// it won't be used. |
|
|
|
/// If this map is set to null or empty, the default delimiter of " will be used. |
|
|
|
/// </summary> |
|
|
|
/// <example> |
|
|
|
/// <code language="C#"> |
|
|
|
/// QuotationMarkAliasMap = new Dictionary<char, char%gt;() |
|
|
|
/// { |
|
|
|
/// {'\"', '\"' }, |
|
|
|
/// {'“', '”' }, |
|
|
|
/// {'「', '」' }, |
|
|
|
/// } |
|
|
|
/// </code> |
|
|
|
/// </example> |
|
|
|
public Dictionary<char, char> QuotationMarkAliasMap { get; set; } = QuotationAliasUtils.GetDefaultAliasMap; |
|
|
|
|
|
|
|
/// <summary> Determines whether extra parameters should be ignored. </summary> |
|
|
|