public CommandArgumentContainer ApplySettings(char prefix) { if (CommandName.FirstOrDefault() == prefix) { CommandName = CommandName.Remove(0, 1); } return(this); }
public CommandContainer RemovePrefix(char prefix) { if (CommandName.FirstOrDefault() == prefix) { CommandName = CommandName.Remove(0, 1); } return(this); }
public bool EnsureStartWithPrefix(char prefix) { return(prefix == '\0' || CommandName.FirstOrDefault() == prefix); }
public bool StartsWithPrefix(char prefix) => prefix == '\0' || CommandName.FirstOrDefault() == prefix;