Lingo.Api.Entitlement (Lingo v0.4.2)

Copy Markdown View Source

Entitlements: who has access to the application's SKUs.

Every function returns {:ok, result}, :ok when Discord sends no body, or {:error, %Lingo.Error{}}. Calls go to the current bot (see Lingo.with_bot/2).

Summary

Functions

Marks a one-time purchase entitlement as used.

Grants a test entitlement to a user or guild.

Deletes a test entitlement.

Fetches an entitlement.

Lists the application's entitlements.

Functions

consume(entitlement_id)

@spec consume(Lingo.Api.id()) :: Lingo.Api.result()

Marks a one-time purchase entitlement as used.

create_test(params)

Grants a test entitlement to a user or guild.

delete_test(entitlement_id)

@spec delete_test(Lingo.Api.id()) :: Lingo.Api.result()

Deletes a test entitlement.

get(entitlement_id)

Fetches an entitlement.

list(opts \\ [])

Lists the application's entitlements.