IBotStorage interface
Replaceable storage system used by UniversalBot.
Methods
get |
Reads in data from storage. |
save |
Writes out data to storage. |
Method Details
getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)
Reads in data from storage.
function getData(context: IBotStorageContext, callback: (err: Error, data: IBotStorageData) => void)
Parameters
- context
- IBotStorageContext
- callback
-
(err: Error, data: IBotStorageData) => void
saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)
Writes out data to storage.
function saveData(context: IBotStorageContext, data: IBotStorageData, callback?: (err: Error) => void)
Parameters
- context
- IBotStorageContext
- data
- IBotStorageData
- callback
-
(err: Error) => void