Class CommandServiceConfig
Represents a configuration class for CommandService.
public class CommandServiceConfig
- Inheritance
-
CommandServiceConfig
- Inherited Members
Properties
CaseSensitiveCommands
Gets or sets whether commands should be case-sensitive.
public bool CaseSensitiveCommands { get; set; }
Property Value
DefaultRunMode
Gets or sets the default RunMode commands should have, if one is not specified on the Command attribute or builder.
public RunMode DefaultRunMode { get; set; }
Property Value
IgnoreExtraArgs
Gets or sets a value that indicates whether extra parameters should be ignored.
public bool IgnoreExtraArgs { get; set; }
Property Value
LogLevel
Gets or sets the minimum log level severity that will be sent to the Log event.
public LogSeverity LogLevel { get; set; }
Property Value
QuotationMarkAliasMap
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 Discord.Commands.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.
public Dictionary<char, char> QuotationMarkAliasMap { get; set; }
Property Value
Examples
QuotationMarkAliasMap = new Dictionary<char, char>()
{
{'\"', '\"' },
{'“', '”' },
{'「', '」' },
}
SeparatorChar
Gets or sets the char that separates an argument with another.
public char SeparatorChar { get; set; }
Property Value
ThrowOnError
Gets or sets whether Sync commands should push exceptions up to the caller.
public bool ThrowOnError { get; set; }