MCPcopy Create free account
hub / github.com/Botloader/botloader / createStorageJson

Method createStorageJson

components/runtime/src/ts/script.ts:118–123  ·  view source on GitHub ↗

* Create new json storage buckets for persistent storage * * @param namespace a "name" or "id" for the bucket. * This is not script scoped and the same storage bucket can be registered in multiple scripts to have access to the same data, this is perfectly safe. * * @examp

(namespace: string)

Source from the content-addressed store, hash-verified

116 *
117 */
118 createStorageJson<T>(namespace: string) {
119 let bucket = new Storage.JsonBucket<T>(namespace, this.storagePluginId());
120 this.storageBuckets.push(bucket);
121
122 return bucket;
123 }
124
125 /**
126 * @deprecated use {@łink createStorageNumber}

Callers 15

lib.tsFile · 0.80
invites.tsFile · 0.80
storagev2.tsFile · 0.80
tags.tsFile · 0.80
polls.tsFile · 0.80
moderation.tsFile · 0.80
giveaways.tsFile · 0.80
reaction_roles.tsFile · 0.80
tickets_2.tsFile · 0.80
starboard.tsFile · 0.80
economy_3.tsFile · 0.80
tickets_3.tsFile · 0.80

Calls 1

storagePluginIdMethod · 0.95

Tested by

no test coverage detected