UNPKG

msg.ts

Version:

MSG is the framework for make discord bot easily

20 lines 553 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Cache extends Map { set(name, value) { if (name in this.$) { throw new Error(`${name} is already exists`); } this.$[name] = value; return this; } remove(name) { if (!(name in this.$)) { throw new Error(`${name} is not exists`); } delete this.$[name]; return this; } } exports.default = Cache; //# sourceMappingURL=../../src/dist/class/Cache.js.map