The client that this data provider will be used by.
The fully resolved path where the Level database will be saved. This must resolve to a directory.
Readonly
clientThe client that this data provider will be used by.
DataProvider
Private
dbThe Level instance for this data provider.
LevelDataProvider
Private
_clearPrivate
_deletePrivate
_getPrivate
Get a value for a given absolute key.
The key of the data to be queried.
A promise that resolves the queried data.
Private
Get a value for a given absolute key.
The key of the data to be queried.
The default value in case there is no entry found.
A promise that resolves the queried data.
Private
_setClear all data in a guild.
The guild to clear the data from.
A promise that resolves once all data has been deleted.
client#dataProviderClear
Delete a key-value pair in a guild.
The guild for which the key-value pair will be deleted.
The key to delete.
A promise that resolves the data that has been deleted.
Get a value for a key in a guild.
The guild for which the data will be queried.
The key of the data to be queried.
A promise that resolves the queried data.
Get a value for a key in a guild.
The guild for which the data will be queried.
The key of the data to be queried.
The default value in case there is no entry found.
A promise that resolves the queried data.
Get a value for a key in a global scope.
The key of the data to be queried.
A promise that resolves the queried data.
Get a value for a key in a global scope.
The key of the data to be queried.
The default value in case there is no entry found.
A promise that resolves the queried data.
Initialize this Level data provider. This opens the database connection and creates the data directory in case it does not exist yet.
A promise that resolves this Level data provider once it's ready.
client#dataProviderInit
Private
resolvePrivate
Resolve the key for the provided guild or for the global scope if not provided.
The key to resolve.
Optional
guild: GuildThe guild for which the key will be resolved.
The resolved key.
Set a value for a key in a guild.
The guild for which the data will be set.
The key of the data to be set.
The value to set.
A promise that resolves once the data is saved.
Generated using TypeDoc
A DataProvider implemented with a Level backend.