🏬
Storage
Store user data using our Storage API
You can store a specific value using
.set
function from Storage API. Here is an example:await Storage.set(`key`, `value`);
Value could be either
string
or json
.You can get the value from bot storage using
.get
function. Here is an example:const value = await Storage.get(`key`);
If the value is stored in JSON it will be parsed automaticaly.
You can delete a specific value using
.del
function from Storage API. Here is an example:await Storage.del(`key`);
Last modified 1yr ago