Skip to Content
defold-typescript libraries
widgrensitasobi-defold

widgrensit/asobi-defold/asobi.api.votes

asobi match votes over REST. A project reaches it as client.votes.

  • GitHub: widgrensit/asobi-defold — pinned to v1.18.1
    1. Pick a release from widgrensit/asobi-defold releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as api_votes from "asobi.api.votes"

Functions

list_for_match(client: Client, match_id: string, callback?: HttpCallback)

Fetches a match's votes.

Parameters

  • client: Client — The client.
  • match_id: string — The match's id.
  • callback?: HttpCallback — Receives the votes, or the error.

get(client: Client, vote_id: string, callback?: HttpCallback)

Fetches one vote.

Parameters

  • client: Client — The client.
  • vote_id: string — The vote's id.
  • callback?: HttpCallback — Receives the vote, or the error.

On this page