34 "desc":
"Discord guild data provider; parent provider for APIs related to guilds",
35 "type":
"DiscordGuildDataProvider",
37 "id": <DataProviderOptionInfo>{
38 "display_name":
"Server ID",
39 "short_desc":
"The ID of the server or guild",
40 "type": AbstractDataProviderTypeMap.
"string",
41 "desc":
"The ID of the server or guild",
44 "supports_children": True,
45 "children_can_support_apis": True,
50 AbstractDataProvider::DataProviderSummaryInfoKeys
60 const DefaultChildMap = ...;
63 static hash<string, Reflection::Class> childMap = DefaultChildMap;
The Discord data provider base class.
Definition DiscordDataProviderBase.qc.dox.h:28
*DiscordRestClient rest
The REST client object for API calls.
Definition DiscordDataProviderBase.qc.dox.h:43
const ConstructorOptions
Constructor options.
Definition DiscordDataProvider.qc.dox.h:43
The parent class for Discord guild REST APIs.
Definition DiscordGuildDataProvider.qc.dox.h:28
constructor(*hash< auto > options)
Creates the object from constructor options.
*string getDesc()
Returns the data provider description.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
static hash< DataProviderSummaryInfo > ProviderSummaryInfo
Provider summary info.
Definition DiscordGuildDataProvider.qc.dox.h:49
*hash< auto > cal
The guild's metadata.
Definition DiscordGuildDataProvider.qc.dox.h:58
static hash< DataProviderInfo > ProviderInfo
Provider info.
Definition DiscordGuildDataProvider.qc.dox.h:32
*DiscordDataProviderBase getChildProviderImpl(string name)
Returns the given child provider or nothing if the given child is unknown.
static deregisterChild(string pathname)
Deregister the named child data provider.
static registerChild(string pathname, Reflection::Class cls)
Register a new child data provider for Discord guilds.
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
string getName()
Returns the data provider name.
constructor(DiscordRestClient::DiscordRestClient rest, hash< auto > guild)
Creates the object from a REST connection.
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
hash< auto > guild
The guild info.
Definition DiscordGuildDataProvider.qc.dox.h:55
Qore DiscordDataProvider module definition.
Definition DiscordDataProvider.qc.dox.h:26