DiscordRESTMediator¶
Description¶
Mediator class of DiscordRESTAPIAdapter
class.
Methods¶
return type | signature |
---|---|
Variant | request_async ( int type, String request, Array arguments ) coroutine |
Resource | cdn_download_async ( String url ) coroutine |
Method Descriptions¶
-
Variant request_async ( int type, String request, Array arguments ) coroutine
Forwards the request to one of
DiscordRESTAPIAdapter
sub client specified bytype.
requestis the request endpoint.
arguments` is the request arguments.
-
Resource cdn_download_async ( String url ) coroutine
Downloads the resource at the given
url
.