您好stackoverflow社区!
今天,我尝试使用discord.py
API,发现您可以
用它来“丰富存在”。
所以我尝试在应用程序中使用它,但是当我尝试运行它时,
出现此错误:
Traceback (most recent call last):
File "/Users/johannes/Desktop/test./example.py", line 6, in <module>
rpc_obj = rpc.DiscordIpcClient.for_platform(client_id) #Send the client ID to the rpc module
File "/Users/johannes/Desktop/test./rpc.py", line 56, in for_platform
return UnixDiscordIpcClient(client_id)
File "/Users/johannes/Desktop/test./rpc.py", line 48, in __init__
self._do_handshake()
File "/Users/johannes/Desktop/test./rpc.py", line 69, in _do_handshake
self.close()
File "/Users/johannes/Desktop/test./rpc.py", line 96, in close
self.send({}, op=OP_CLOSE)
File "/Users/johannes/Desktop/test./rpc.py", line 119, in send
self._write(header)
File "/Users/johannes/Desktop/test./rpc.py", line 204, in _write
self._sock.sendall(data)
BrokenPipeError: [Errno 32] Broken pipe
您能帮我解决这个问题吗?