Lavacord
    Preparing search index...

    Interface ManagerOptions

    Defines the options for configuring the Lavacord Manager.

    These options control how the Manager interacts with Discord and Lavalink.

    interface ManagerOptions {
        player?: typeof Player;
        send?: (packet: GatewayVoiceStateUpdate) => unknown;
        userId?: string;
    }
    Index

    Properties

    Properties

    player?: typeof Player

    The Player class to be used by the manager for creating new player instances.

    Allows for extending the base Player functionality with custom implementations.

    send?: (packet: GatewayVoiceStateUpdate) => unknown

    The function used to send gateway voice packets to Discord.

    Type Declaration

      • (packet: GatewayVoiceStateUpdate): unknown
      • Parameters

        • packet: GatewayVoiceStateUpdate

          The Discord packet to send.

        Returns unknown

        A Promise or value representing the send operation result.

    This needs to be implemented by the end-user based on their Discord library.

    userId?: string

    The user ID of the bot.

    It's recommended to set this when the bot client is ready.