Shoukaku
    Preparing search index...

    Class Player

    Wrapper object around Lavalink

    Index

    Constructors

    Properties

    connection: WeakRef<Connection>

    Lavalink node this player is connected to

    guildId: string

    GuildId of this player

    Accessors

    Methods

    • Clear all filters applied to the currently playing track

      Returns Promise<void>

    • Destroys the player in remote Lavalink side

      Returns Promise<void>

    • Seek to a specific time in the currently playing track

      Parameters

      • position: number

        Position to seek to in milliseconds

      Returns Promise<void>

    • Change the channel mix settings applied to the currently playing track

      Parameters

      • OptionalchannelMix: ChannelMixSettings

        An object that conforms to ChannelMixSettings that defines how much the left and right channels affect each other (setting all factors to 0.5 causes both channels to get the same audio)

      Returns Promise<void>

    • Change the distortion settings applied to the currently playing track

      Parameters

      • Optionaldistortion: DistortionSettings

        An object that conforms to DistortionSettings that defines distortions in the audio

      Returns Promise<void>

      The current player instance

    • Change the equalizer settings applied to the currently playing track

      Parameters

      • equalizer: Band[]

        An array of objects that conforms to the Bands type that define volumes at different frequencies

      Returns Promise<void>

    • Change the all filter settings applied to the currently playing track

      Parameters

      • filters: FilterOptions

        An object that conforms to FilterOptions that defines all filters to apply/modify

      Returns Promise<void>

    • Sets the filter volume of the player

      Parameters

      • volume: number

        Target volume 0.0-5.0

      Returns Promise<void>

    • Sets the global volume of the player

      Parameters

      • volume: number

        Target volume 0-1000

      Returns Promise<void>

    • Change the karaoke settings applied to the currently playing track

      Parameters

      • Optionalkaraoke: KaraokeSettings

        An object that conforms to the KaraokeSettings type that defines a range of frequencies to mute

      Returns Promise<void>

    • Change the low pass settings applied to the currently playing track

      Parameters

      • OptionallowPass: LowPassSettings

        An object that conforms to LowPassSettings that defines the amount of suppression on higher frequencies

      Returns Promise<void>

    • Pause or unpause the currently playing track

      Parameters

      • paused: boolean = true

        Boolean value to specify whether to pause or unpause the current bot user

      Returns Promise<void>

    • Change the rotation settings applied to the currently playing track

      Parameters

      • Optionalrotation: RotationSettings

        An object that conforms to the RotationSettings type that defines the frequency of audio rotating round the listener

      Returns Promise<void>

    • Change the timescale settings applied to the currently playing track

      Parameters

      • Optionaltimescale: TimescaleSettings

        An object that conforms to the TimescaleSettings type that defines the time signature to play the audio at

      Returns Promise<void>

    • Change the tremolo settings applied to the currently playing track

      Parameters

      • Optionaltremolo: FreqSettings

        An object that conforms to the FreqSettings type that defines an oscillation in volume

      Returns Promise<void>

    • Change the vibrato settings applied to the currently playing track

      Parameters

      • Optionalvibrato: FreqSettings

        An object that conforms to the FreqSettings type that defines an oscillation in pitch

      Returns Promise<void>

    • Stop the currently playing track

      Returns Promise<void>