Function getById

  • Get a function by its ID

    Type Parameters

    • T

    Parameters

    • id: number

      Module ID

    • Optional raw: false

      Return the raw module instead of the exports

    Returns T | undefined

    Remarks

    IDs are not stable between Discord updates. This function is mainly useful for debugging. You should not use this function in production unless the ID is dynamically determined.

  • Get a function by its ID

    Type Parameters

    • T

    Parameters

    • id: number

      Module ID

    • raw: true

      Return the raw module instead of the exports

    Returns RawModule<T> | undefined

    Remarks

    IDs are not stable between Discord updates. This function is mainly useful for debugging. You should not use this function in production unless the ID is dynamically determined.

  • Get a function by its ID

    Type Parameters

    • T

    Parameters

    • id: number

      Module ID

    • Optional raw: boolean

      Return the raw module instead of the exports

    Returns T | RawModule<T> | undefined

    Remarks

    IDs are not stable between Discord updates. This function is mainly useful for debugging. You should not use this function in production unless the ID is dynamically determined.

Generated using TypeDoc