MarketplaceConfigs

Resolves names, share codes and server addresses to marketplace configs.

Properties

Link copied to clipboard

How commands name an item: author/name, or its name while the author is unknown.

Link copied to clipboard

Top configs by score. Only feeds suggestions; every load resolves against the API.

Link copied to clipboard
const val PAGE_LIMIT: Int = 10
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun find(input: String): List<MarketplaceItem>

Configs input names: a share code, an item id, author/name or a bare name. More than one result means the bare name is ambiguous.

Link copied to clipboard

Like find, for anything a config can depend on: configs first, then add-ons and scripts.

Link copied to clipboard
suspend fun findForServer(address: String, onlyFeatured: Boolean): MarketplaceItem?

The best ranked config for address, featured ones first.

Link copied to clipboard
suspend fun list(page: Int = 1, limit: Int = PAGE_LIMIT, query: String? = null, tags: List<Int> = emptyList(), name: String? = null, author: String? = null, targetServer: String? = null, featured: Boolean? = null): PaginatedResponse<MarketplaceItem>
Link copied to clipboard
suspend fun refresh(): Boolean