Documentation
Classes
discord-player
GuildNodeManager

GuildNodeManager

new GuildNodeManager(player)
ParameterTypeOptionalDescription
playerPlayer-

Properties

public cache: Collection<string, GuildQueue<unknown>>

public player: Player

Methods

public create(guild, options): GuildQueue<T>

Create guild queue if it does not exist

ParameterTypeOptionalDescription
guildGuildResolvableThe guild which will be the owner of the queue
optionsGuildNodeCreateOptions<T>Queue initializer options

public delete(node): boolean

Delete queue

ParameterTypeOptionalDescription
nodeNodeResolvableQueue resolvable

public get(node): null | GuildQueue<T>

Get existing queue

ParameterTypeOptionalDescription
nodeNodeResolvableQueue resolvable

public has(node): boolean

Check if a queue exists

ParameterTypeOptionalDescription
nodeNodeResolvableQueue resolvable

public resolve(node): undefined | GuildQueue<unknown>

Resolve queue

ParameterTypeOptionalDescription
nodeNodeResolvableQueue resolvable

public resolveId(node): null | string

Resolve queue id

ParameterTypeOptionalDescription
nodeNodeResolvableQueue resolvable