GuildNodeManager
new GuildNodeManager(player)
Parameter | Type | Optional | Description |
---|---|---|---|
player | Player | ❌ | - |
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
Parameter | Type | Optional | Description |
---|---|---|---|
guild | GuildResolvable | ❌ | The guild which will be the owner of the queue |
options | GuildNodeCreateOptions<T> | ❌ | Queue initializer options |
public delete(node): boolean
Delete queue
Parameter | Type | Optional | Description |
---|---|---|---|
node | NodeResolvable | ❌ | Queue resolvable |
public get(node): null | GuildQueue<T>
Get existing queue
Parameter | Type | Optional | Description |
---|---|---|---|
node | NodeResolvable | ❌ | Queue resolvable |
public has(node): boolean
Check if a queue exists
Parameter | Type | Optional | Description |
---|---|---|---|
node | NodeResolvable | ❌ | Queue resolvable |
public resolve(node): undefined | GuildQueue<unknown>
Resolve queue
Parameter | Type | Optional | Description |
---|---|---|---|
node | NodeResolvable | ❌ | Queue resolvable |
public resolveId(node): null | string
Resolve queue id
Parameter | Type | Optional | Description |
---|---|---|---|
node | NodeResolvable | ❌ | Queue resolvable |