The Discord data provider base class.
More...
#include <DiscordDataProviderBase.qc.dox.h>
|
|
| constructor () |
| | Creates the object.
|
| |
|
| constructor (DiscordRestClient rest, *Logger::LoggerInterface logger) |
| | Creates the object.
|
| |
|
| constructor (DiscordRestConnection conn, *Logger::LoggerInterface logger) |
| | Creates the object.
|
| |
|
| setLogger (*LoggerInterface logger) |
| | Accepts a LoggerInterface object for logging (or clears it)
|
| |
|
|
static | threadWait (date wait_period) |
| | Wait for a given period of time.
|
| |
|
|
const | MaxIoRetries = 5 |
| | Max retries.
|
| |
|
const | RetrySet = ... |
| | IO errors for REST retries.
|
| |
|
|
hash< auto > | doRestCommand (string method, string path, auto body, reference< hash< auto > > info) |
| | Makes a REST call and returns the response; handles rate limit responses.
|
| |
|
hash< auto > | getGuild (string id) |
| | Retrieves info for the given guild; must be accessible to the calling user.
|
| |
|
bool | retry (hash< ExceptionInfo > ex, reference< int > retries) |
| | Returns True if the error indicates that the operation should be retried.
|
| |
|
|
*DiscordRestConnection | conn |
| | The connection object used to create the REST client.
|
| |
|
*DiscordRestClient | rest |
| | The REST client object for API calls.
|
| |
The Discord data provider base class.