Skip to content

Use custom player class #33

Open
Open
@varma02

Description

@varma02

Is your feature request related to a problem? Please describe.
I want to store my bot's queue and other music related info. I also want to modify the play command for spotify playback support.

Describe the solution you'd like
I want to be able to pass in a custom class when I use the Node.players.get() function.
Like this:

class CustomPlayer extends Player { 
// Code
}
const node = new Node({options})
node.players.get('guildId', CustomPlayer)

Describe alternatives you've considered
None

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions