Discord Elixir v1.1.18 DiscordEx.RestClient View Source

Discord RestClient. Used a GenServer so that you can have multiple clients in one application.

Link to this section Summary

Types

Response body with related options

Functions

Start process and HTTP Client. {:ok, conn} = DiscordEx.RestClient.start_link(%{token: token})

Link to this section Types

Link to this type request_reply() View Source
request_reply() :: {atom(), map(), map()}

Response body with related options

Link to this section Functions

Link to this function resource(connection, method, path, payload \\ nil) View Source
resource(pid(), atom(), String.t(), map()) :: request_reply()
Link to this function start_link(opts, server_opts \\ []) View Source

Start process and HTTP Client. {:ok, conn} = DiscordEx.RestClient.start_link(%{token: token})