RequestHandler

Handles Discord API requests.

Inheritors

Properties

Link copied to clipboard
abstract val token: String

The Discord bot authorization token used on requests.

Functions

Link copied to clipboard
abstract suspend fun <B : Any, R> handle(request: Request<B, R>): R

Executes the request, abiding by the active rate limits and returning the response R.

Link copied to clipboard
open suspend fun <T> intercept(builder: RequestBuilder<T>)