Lavalink-Client
  • 😁Lavalink Client
  • Basics
    • How it works
    • Get Started
    • Example Discord Bot
  • Documentation
    • LavalinkManager
      • Manager Options
        • ManagerQueueOptions
          • QueueStoreManager
          • QueueChangesWatcher
        • ManagerPlayerOptions
          • RequestTransformer
          • AutoplayFunction
        • BotClientOptions
      • ManagerUtils
    • NodeManager
      • Types
        • LavalinkNode
        • LavalinkNodeOptions
    • Player
      • PlayerOptions
      • PlayerDestroyReasons
      • PlayerTypes
        • RepeatMode
        • PlayerJson
    • Other Types
      • EQBand
      • FilterData
        • KaraokeFilter
      • Track
        • TrackInfo
        • PluginInfo
      • UnresolvedTrack
      • UnresolvedQuery
      • LavalinkTrack
        • Base64
        • LavalinkTrackInfo
      • Payloads
        • GuildShardPayload
        • PlayerEvent
        • TrackStartEvent
        • TrackEndEvent
        • TrackStuckEvent
        • TrackExceptionEvent
        • WebSocketClosedEvent
      • SearchPlatform
        • LavalinkSearchPlatform
        • ClientSearchPlatform
      • SourceNames
        • LavalinkSourceNames
        • LavaSrc SourceNames (lavalink-plugin)
    • Other Utils and Classes
      • DefaultQueueStore
      • MiniMap
  • Requirements
  • Host a Lavalink-Server
    • application.yml Configuration
      • With Spotify, Deezer, Apple Music, etc.
    • Host via pm2
    • Host via systemd
    • Host via screen
  • ⚪Github
  • 📖Lavalink-Support Server
Powered by GitBook
On this page
  • Constructor
  • Import
  • Overview
  • Properties
  • .size
  • Methods
  • .get(key:any)
  • .set(key:any, value:any)
  • .has(key:any)
  • .delete(key:any)
  • .clear()
  • .entries()
  • .values()
  • .keys()
  • .forEach(fn:(value,key,map)=>void)
  • Extended Methods
  • .map(fn:(value,key,map)=>any)
  • .filter(fn:(value,key,map)=>boolean)
  • .toJSON()
  1. Documentation
  2. Other Utils and Classes

MiniMap

The default Store Option for Players and Nodes.

PreviousDefaultQueueStoreNextRequirements

Last updated 1 year ago

extends

Constructor

new MiniMap(data?: [ [key, value], [key, value] ])

Import

index.ts
import { MiniMap } from "lavalink-client";
index.js
const { MiniMap } = require("lavalink-client");

Overview

Properties
Methods (from Map)
Methods (added)


Properties

.size

Returns the Amount of entries

Methods

.get(key:any)

Get a value of a key

Returns: any

.set(key:any, value:any)

Sets a Value into a key, if Key already exists then it gets overridden

Returns: value:any

.has(key:any)

Checks if the key is existing or not

.delete(key:any)

Deletes a key, if available, if not available nothing will happen

Returns: any

.clear()

Clears the entire Map

.entries()

Get an iterator of all entries, if you want to put the entries into an array do this:

`[...map.entries()]`

.values()

Get an iterator of all values, if you want to put the entries into an array do this:

`[...map.values()]`

.keys()

Get an iterator of all keys, if you want to put the entries into an array do this:

`[...map.keys()]`

Run a function upon every entry.

Extended Methods

.map(fn:(value,key,map)=>any)

Run a function upon every entry.

.toJSON()

Returns: [Key, Value][]

Type:

Returns:

Returns:

Returns: <[Key,Value]>

Returns: <[Value]>

Returns: <[Key]>

.forEach(fn:(value,key,map)=>)

Returns:

Returns:

.filter(fn:(value,key,map)=>)

Identical to , but returns a instead of an .

Returns: <Key, Value>

Returns the Map to a JSON like value, just executes and formats is an array instead

Map
number
boolean
void
IterableIterator
IterableIterator
IterableIterator
void
void
void
boolean
Array.filter()
MiniMap
Array
MiniMap
this.entries
size
get
toJSON
set
filter
has
map
delete
clear
entries
values
keys
forEach