# Crux.Rest

Package providing rest functions and rate limiting for the [Discord API](

## Useful links

 - [Documentation](
 - [Github](
 - [Changelog](
 - [Umbrella Development Documentation](

## Installation

The package can be installed by adding `crux_rest` to your list of dependencies in `mix.exs`:

def deps do
    {:crux_rest, "~> 0.1.5"}

## Usage

After providing a token to use via either your [config.exs](/config/config.exs), [`Application.put_env/3`](, or [`:application.set_env/3`]( freely use the functions provided by the [`Crux.Structs.Rest`](/lib/rest.ex) module.

For example:

  iex> Crux.Rest.create_message(445290716198076427, content: "Hello there!")
    content: "Hello there!",
    author: %Crux.Structs.User{...},