# Store

A Store is an instance which extends discord.js's Collection class, and it is used to store "pieces" (checkout Piece for more info).
The first argument (besides the holder for this store) to pass to it when using it as a type is K, which is the Key (checkout what a key means in a Map, which is what Collection inherits.), then the second argument is V, which is the Value (checkout what a key means in a Map) that extends Piece. Meaning that whatever value has been passed in, it has to be a value that extends the Piece structure class.

# Example of how to instantiate a new Store correctly

(TS)

import { AbrevioClient, Store } from "abrevio";

const client: AbrevioClient = new AbrevioClient();

const data: Store<string, string[]> = new Store(client, "data", ["some", "data"]);

(JS)

const { AbrevioClient, Store } = require("abrevio");

const client = new AbrevioClient();

const data = new Store(client, "data", ["some", "data"]);