discord_gleam/http/request

Functions

pub fn new(method: Method, path: String) -> Request(String)
pub fn new_auth(
  method: Method,
  path: String,
  token: String,
) -> Request(String)

Some endpoints requires token authentication

pub fn new_auth_post(
  method: Method,
  path: String,
  token: String,
  data: String,
) -> Request(String)

We have this to send post requests with token authentication

Search Document