discord_gleam/http/request
Functions
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
pub fn new_auth_with_header(
method: Method,
path: String,
token: String,
header: #(String, String),
) -> Request(String)
Some endpoints requires token authentication