You could also try (before importing discord -- need to restart pythonista then try this)
ssl.match_hostname = lambda cert, hostname: True
For some reason, ssl.match_hostname is being called with 'IP-ADDRESS' instead of an actual hostname. I'm not sure where that is coming from exactly, I guess the underlying _sslobj from OpenSSL. Pythonista uses an old OpenSSL version iirc, so this could explain it maybe.