RequestError

public struct RequestError: Error

Custom Error type for quick details on why a request failed

  • Discord custom error code

    Declaration

    Swift

    public let code: Int
  • More detailed message error in form of dictionary

    Declaration

    Swift

    public let error: [String: String]
  • Basic jist of why a request failed

    Declaration

    Swift

    public let message: String
  • HTTP status code on request

    Declaration

    Swift

    public let statusCode: Int