CommandElement constructor

CommandElement(String raw, { CommandSanitizer sanitizer })

Creates a new command element with the specified raw value.

If a sanitizer is specified, it will be used to generate this command element's sanitized value. If it is unspecified, the raw value will be used as the sanitized value.

Implementation

CommandElement(this.raw, {CommandSanitizer sanitizer})
    : _sanitizer = sanitizer;