Lingo.Api.StageInstance (Lingo v0.4.2)

Copy Markdown View Source

Stage instances: live stages in stage channels.

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

Starts a stage instance in a stage channel.

Ends a stage instance.

Fetches the stage instance of a stage channel.

Edits a stage instance.

Functions

create(params, opts \\ [])

Starts a stage instance in a stage channel.

delete(channel_id, opts \\ [])

@spec delete(
  Lingo.Api.id(),
  keyword()
) :: Lingo.Api.result()

Ends a stage instance.

get(channel_id)

Fetches the stage instance of a stage channel.

update(channel_id, params, opts \\ [])

Edits a stage instance.