@wppconnect/wa-js - v3.17.0
    Preparing search index...

    Variable removeListenerConst

    removeListener: <
        Name extends
            | "blocklist.sync"
            | "call.incoming_call"
            | (keyof ChatEventTypes)
            | "config.update"
            | (keyof ConnEventTypes)
            | "group.participant_changed"
            | "order.payment_status"
            | "status.sync"
            | (keyof WebpackEvents)
            | "alfa"
            | "beta",
    >(
        event: Name,
        listener: (
            ...args: ListenerType<
                (
                    BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                        alfa: string;
                        beta: (from: number, to: string) => void;
                    }
                )[Name],
            >,
        ) => void,
    ) => this = ...

    Type declaration

      • <
            Name extends
                | "blocklist.sync"
                | "call.incoming_call"
                | (keyof ChatEventTypes)
                | "config.update"
                | (keyof ConnEventTypes)
                | "group.participant_changed"
                | "order.payment_status"
                | "status.sync"
                | (keyof WebpackEvents)
                | "alfa"
                | "beta",
        >(
            event: Name,
            listener: (
                ...args: ListenerType<
                    (
                        BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & {
                            alfa: string;
                            beta: (from: number, to: string) => void;
                        }
                    )[Name],
                >,
            ) => void,
        ): this
      • Remove a listener from the listener array for the specified event. Caution: Calling this method changes the array indices in the listener array behind the listener.

        Type Parameters

        • Name extends
              | "blocklist.sync"
              | "call.incoming_call"
              | (keyof ChatEventTypes)
              | "config.update"
              | (keyof ConnEventTypes)
              | "group.participant_changed"
              | "order.payment_status"
              | "status.sync"
              | (keyof WebpackEvents)
              | "alfa"
              | "beta"

        Parameters

        Returns this