Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MusicClient

Hierarchy

  • MusicClient

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly players

players: Map<string, Player> = new Map<string, Player>()

Players for each guild.

Methods

create

get

  • get(guildId: string): Player
  • Get a player for a guild.

    Parameters

    • guildId: string

      Guild ID of the player.

    Returns Player

on

  • Listen to music client events.

    Parameters

    • event: MusicClientEvent

      Callback function for event listener.

    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

search

  • search(query: string): Promise<Track[]>
  • Search YouTube for tracks.

    Parameters

    • query: string

      Term to search YouTube for.

    Returns Promise<Track[]>

Generated using TypeDoc