Class CommandServiceConfig
Represents a configuration class for Discord.Commands.CommandService.
Assembly: Discord.Net.Commands.dll​
View Source​
public class CommandServiceConfig
Properties​
DefaultRunMode​
Gets or sets the default Discord.Commands.RunMode commands should have, if one is not specified on the Command attribute or builder.
View Source​
public RunMode DefaultRunMode { get; set; }
SeparatorChar​
Gets or sets the System.Char
that separates an argument with another.
View Source​
public char SeparatorChar { get; set; }
CaseSensitiveCommands​
Gets or sets whether commands should be case-sensitive.
View Source​
public bool CaseSensitiveCommands { get; set; }
LogLevel​
Gets or sets the minimum log level severity that will be sent to the Discord.Commands.CommandService.Log event.
View Source​
public LogSeverity LogLevel { get; set; }
ThrowOnError​
Gets or sets whether Discord.Commands.RunMode.Sync commands should push exceptions up to the caller.
View Source​
public bool ThrowOnError { get; set; }
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.
View Source​
public Dictionary<char, char> QuotationMarkAliasMap { get; set; }
IgnoreExtraArgs​
Gets or sets a value that indicates whether extra parameters should be ignored.
View Source​
public bool IgnoreExtraArgs { get; set; }