Discolink
    Preparing search index...

    Class Player<Context, Plugins>

    Main class putting together all essential managers, also the entry point to get you started

    Type Parameters

    Hierarchy

    Index

    Constructors

    Properties

    voices: VoiceManager

    Accessors

    Methods

    • Destroys the queue of a guild

      Parameters

      • guildId: string

        Id of the guild

      • Optionalreason: string

        Reason for destroying

      Returns Promise<void>

    • Pauses the queue of a guild

      Parameters

      • guildId: string

        Id of the guild

      Returns Promise<boolean>

    • Resumes the queue of a guild

      Parameters

      • guildId: string

        Id of the guild

      Returns Promise<boolean>

    • Seeks to a position in the current track of a guild

      Parameters

      • guildId: string

        Id of the guild

      • ms: number

        Position in milliseconds

      Returns Promise<number>

    • Enables or disables autoplay for the queue of a guild

      Parameters

      • guildId: string

        Id of the guild

      • Optionalautoplay: boolean

        Whether to enable autoplay

      Returns boolean

    • Sets the volume of the queue of a guild

      Parameters

      • guildId: string

        Id of the guild

      • volume: number

        The volume to set

      Returns Promise<number>

    • Shuffles tracks for the queue of a guild

      Parameters

      • guildId: string

        Id of the guild

      • OptionalincludePrevious: boolean

        Whether to pull previous tracks to current

      Returns Queue<Context>

    Events

    • Returns void

    • Parameters

      • node: Node
      • reconnects: number

      Returns void

    • Parameters

      • node: Node
      • resumed: boolean
      • sessionId: string

      Returns void

    • Parameters

      • node: Node
      • code: number
      • reason: string

      Returns void

    • Parameters

      • node: Node
      • code: number
      • reason: string
      • byLocal: boolean

      Returns void

    • Parameters

      • voice: VoiceState
      • code: number
      • reason: string
      • byRemote: boolean

      Returns void

    • Parameters

      Returns void

    • Parameters

      Returns void