When I attempt to process audio after my bot joins a stage channel, I get this error:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/ubuntu/project/lib/python3.8/site-packages/discord/voice_client.py", line 863, in recv_audio
self.unpack_audio(data)
File "/home/ubuntu/project/lib/python3.8/site-packages/discord/voice_client.py", line 740, in unpack_audio
data = RawData(data, self)
File "/home/ubuntu/project/lib/python3.8/site-packages/discord/sinks/core.py", line 115, in __init__
self.decrypted_data = getattr(self.client, f"_decrypt_{self.client.mode}")(
File "/home/ubuntu/project/lib/python3.8/site-packages/discord/voice_client.py", line 611, in _decrypt_xsalsa20_poly1305_lite
return self.strip_header_ext(box.decrypt(bytes(data), bytes(nonce)))
File "/home/ubuntu/project/lib/python3.8/site-packages/nacl/secret.py", line 149, in decrypt
plaintext = nacl.bindings.crypto_secretbox_open(
File "/home/ubuntu/project/lib/python3.8/site-packages/nacl/bindings/crypto_secretbox.py", line 79, in crypto_secretbox_open
ensure(
File "/home/ubuntu/project/lib/python3.8/site-packages/nacl/exceptions.py", line 88, in ensure
raise raising(*args)
nacl.exceptions.CryptoError: Decryption failed. Ciphertext failed verification
I see an open but unresolved github issue about it: https://github.com/Pycord-Development/pycord/issues/2033.
I tested the same code when joining a regular voice channel, and it works. Just a stage channel. I've also experimented with making the bot a speaker, muting, etc. Nothing seems to work.
Note: I've tried upgrading python version and pycord version to 2.6.1, but it doesn't change the error.
