• Disables a given method on an adapter, replacing it with 404 not found. Throws NBError if the method does not exist. This method is immutable.

    Type Parameters

    Parameters

    • adapter: A
    • methodName: {
          [Key in string | number | symbol]-?: A[Key] extends HandlerAndValidators<Record<string, Predicate>>
              ? Key
              : never
      }[keyof A]

    Returns A

    • modified adapter

Generated using TypeDoc