replugged

    Function waitForModule

    Waits for a module to be available that matches the specified filter.

    This function checks if the module already exists and returns it if found. Otherwise, it waits for the module to be loaded and resolves with the module once it becomes available.

    The type of the module to wait for.

    A filter function to identify the desired module.

    Options for waiting.

    Whether to return the raw module instead of its exports.

    The maximum time to wait for the module (in milliseconds).

    A promise that resolves with the module or rejects if the timeout is reached.

    Will throw an error if the timeout is reached before the module is available.

    MMNEPVFCICPMFPCPTTAAATR