Function waitForModule

  • Wait for a module that matches the given filter

    Type Parameters

    • T

    Parameters

    • filter: Filter

      Filter function

    • Optional options: WaitForOptions & {
          raw?: false;
      }

      Options

    Returns Promise<T>

    See

    filters

    Remarks

    Some modules may not be available immediately when Discord starts and will take up to a few seconds. This is useful to ensure that the module is available before using it.

  • Wait for a module that matches the given filter

    Type Parameters

    • T

    Parameters

    Returns Promise<RawModule<T>>

    See

    filters

    Remarks

    Some modules may not be available immediately when Discord starts and will take up to a few seconds. This is useful to ensure that the module is available before using it.

  • Wait for a module that matches the given filter

    Type Parameters

    • T

    Parameters

    Returns Promise<T | RawModule<T>>

    See

    filters

    Remarks

    Some modules may not be available immediately when Discord starts and will take up to a few seconds. This is useful to ensure that the module is available before using it.

Generated using TypeDoc