Crux v2020-03-17 17:55:51Z Crux.Gateway.Connection View Source

Module handling the actual connection (shard) 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(gateway, shard_id, command) View Source
send_command(
  gateway :: Crux.Gateway.gateway(),
  shard_id :: pos_integer(),
  command :: Crux.Gateway.Command.command()
) :: :ok

Sends a command to the specified shard.

Will be run through a rate limiter which blocks the current process.