DefaultRestClient

class DefaultRestClient(userType: DiscordUserType, token: String, botUrl: String = defaultUserAgentUrl, botVersion: String = defaultUserAgentVersion, block: HttpClientConfig<*>.() -> Unit = {}) : RestClient(source)

Constructors

Link copied to clipboard
constructor(userType: DiscordUserType, token: String, botUrl: String = defaultUserAgentUrl, botVersion: String = defaultUserAgentVersion, block: HttpClientConfig<*>.() -> Unit = {})

Functions

Link copied to clipboard
fun close()

Closes the backing client instances

Link copied to clipboard
open suspend override fun DELETE(majorPath: String, minorPath: String, rateKey: String, block: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
open suspend override fun GET(majorPath: String, minorPath: String, rateKey: String, block: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
open suspend override fun PATCH(majorPath: String, minorPath: String, rateKey: String, omitNulls: Boolean, block: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
open suspend override fun POST(majorPath: String, minorPath: String, rateKey: String, omitNulls: Boolean, block: HttpRequestBuilder.() -> Unit): HttpResponse
Link copied to clipboard
open suspend override fun PUT(majorPath: String, minorPath: String, rateKey: String, omitNulls: Boolean, block: HttpRequestBuilder.() -> Unit): HttpResponse