public static function serviceRespondedWithAnHttpError(ResponseInterface $response)
    {
        $message = "Discord responded with an HTTP error: {$response->getStatusCode()}";

        if ($error = Arr::get(json_decode($response->getBody(), true), 'message')) {
            $message .= ": $error";
        }

        return new static($message);
    }
public static function serviceRespondedWithAnHttpError(ResponseInterface $response)
    {
        $message = "Discord responded with an HTTP error: {$response->getStatusCode()}";

        if ($error = Arr::get(json_decode($response->getBody(), true), 'message')) {
            $message .= ": $error";
        }

        return new static($message);
    }
@param \Psr\Http\Message\ResponseInterface $response

@return static