crux_gateway v0.1.0 Crux.Gateway.Connection View Source

Handles the actual connection to Discord.

Link to this section Summary

Functions

Sends a command to the specified shard

Link to this section Functions

Link to this function send_command(command, shard_id) View Source
send_command(command :: WebSockex.Frame.t(), shard_id :: pos_integer()) ::
  :ok | {:error, term()}

Sends a command to the specified shard.

The command will be run through a rate limiter, this blockes the calling process until the command is sent.