Files
discordeno/plugins/cache
Yuzu 81678fbc22 fix: optionalize recursive type works with nested objects and arrays (#2115)
* fix: get rid of type errors for now

* fix: only 6 type errors left
2022-03-19 05:12:37 -04:00
..
2022-01-26 19:02:34 +01:00
2022-03-16 02:00:10 +00:00
2022-02-04 15:00:04 +01:00

cache-plugin

This is an official plugin maintained by Discordeno. This plugin provides automatic caching. Remember Discordeno does not cache by default. This plugin is NOT recommended for big bot developers but this is useful for smaller bots who just want simple functionality.

Usage

// MOVE TO DEPS.TS AND USE SPECIFIC VERSION
import { enableCachePlugin, enableCacheSweepers } from "https://deno.land/x/discordeno_cache_plugin/mod.ts";

// Create the bot object, THIS WILL NEED YOUR OPTIONS.
const baseBot = createBot({});
// Enables the cache plugin on this bot
const bot = enableCachePlugin(baseBot);
enableCacheSweepers(bot);
// Start your bot
await startBot(bot);