Concoction v0.1.0 Concoction.API.Gateway View Source

API utilities for fetching information on the Discord Gateway.

Link to this section Summary

Functions

Fetch the Gateway without authentication, not returning any shard information.

Fetch the Gateway with authentication, returning the gateway URL and shard count.

Link to this section Functions

Specs

get_gateway() :: {:ok, String.t()} | {:error, map()}

Fetch the Gateway without authentication, not returning any shard information.

Specs

get_gateway_bot() :: {:ok, String.t(), integer()} | {:error, map()}

Fetch the Gateway with authentication, returning the gateway URL and shard count.