RestClient

class RestClient(requestHandler: RequestHandler) : RestService(source)

Constructors

Link copied to clipboard
constructor(requestHandler: RequestHandler)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline suspend fun <T> unsafe(route: Route<T>, block: RequestBuilder<T>.() -> Unit): T

Sends a request to the given route. This function exposes a direct call to the Discord api and allows the user to send a custom RequestBuilder.body.