errorCode property

int errorCode

The error code of this response.

If Discord sets its own status code, this can be found here. Otherwise, this is equal to statusCode.

Implementation

int get errorCode => errorData?.errorCode ?? statusCode;