@kevlid/discordmenus 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +4 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -220,6 +220,10 @@ export declare class MenuStorage {
220
220
  constructor(options?: MenuStorageOptions);
221
221
  get(key: string, ctx?: StorageContext): Promise<unknown>;
222
222
  save(key: string, value: unknown, ctx?: StorageContext): Promise<void>;
223
+ cacheKey(key: string, guildId?: string | null): string;
224
+ cacheGet(key: string, guildId?: string | null): unknown;
225
+ cacheSet(key: string, value: unknown, guildId?: string | null): void;
226
+ cacheDelete(key: string, guildId?: string | null): void;
223
227
  cacheClear(guildId?: string): void;
224
228
  handler(): StorageHandler;
225
229
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevlid/discordmenus",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Components v2 settings menus for Discord bots",
5
5
  "main": "src/index.js",
6
6
  "types": "index.d.ts",