Alchemy.Client.update_status

You're seeing just the function update_status, go back to Alchemy.Client module for more information.
Link to this function

update_status(idle_since \\ nil, game_info)

Specs

update_status(Integer, playing: String.t(), streaming: {String.t(), String.t()}) ::
  :ok | {:error, String.t()}

Updates the status of the client.

The status displays either "playing Game", or a "streaming Game" message under the client, as well setting an inactivity based on idleness.

playing: game specifies that you're playing, but not streaming a game. streaming: {game, twitch} acts in a similar way, except that it will also have a link to that twitch stream. You should only pass in the handle, and not the full stream link, i.e. "foobar" instead of "twitch.tv/foobar". idle_since can be specified, using unix time, in milliseconds, to indicate for how long the client has been idle.

Note on ratelimiting

This functionality is heavily ratelimited, at a rate of 1 req / 12s. Because of this, this function will automatically error after 24s of waiting. Because of how long this may take, you might want to run this in a new task.

Examples

Client.update_status("Alchemy")