DefaultQueueStore
import { DefaultQueueStore } from "lavalink-client";export class DefaultQueueStore implements QueueStoreManager {
private data = new MiniMap();
constructor() {
}
async get(guildId) {
return await this.data.get(guildId);
}
async set(guildId, stringifiedValue) {
return await this.data.set(guildId, stringifiedValue)
}
async delete(guildId) {
return await this.data.delete(guildId);
}
async stringify(value) {
return value; // JSON.stringify(value);
}
async parse(value) {
return value as Partial<StoredQueue>; // JSON.parse(value)
}
}Last updated