Class CommandServiceConfig
Represents a configuration class for CommandService.
public class CommandServiceConfig
- Inheritance
-
objectCommandServiceConfig
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
Logger
Configure the logger for the command service.
public ILogger Logger { get; set; }
Property Value
- ILogger
OwnerBypassPermissions
Owners can bypass permission preconditions.
public bool OwnerBypassPermissions { get; set; }
Property Value
OwnerIDs
Extra owner IDs when checking RequireOwner precondition.
public ulong[]? OwnerIDs { get; set; }
Property Value
- ulong[]
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 Fluxer.Net.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; }