From f390507296cea9f4436ffaa6da7795cb272a5c76 Mon Sep 17 00:00:00 2001 From: Luca Kellermann Date: Sat, 2 Nov 2024 05:02:55 +0100 Subject: [PATCH] Add ReplaceWith for AudioFrameSenderConfiguration constructor --- voice/src/main/kotlin/udp/AudioFrameSender.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/voice/src/main/kotlin/udp/AudioFrameSender.kt b/voice/src/main/kotlin/udp/AudioFrameSender.kt index e31bd032341..944889a0333 100644 --- a/voice/src/main/kotlin/udp/AudioFrameSender.kt +++ b/voice/src/main/kotlin/udp/AudioFrameSender.kt @@ -19,7 +19,12 @@ public data class AudioFrameSenderConfiguration( @Deprecated( "An 'AudioFrameSenderConfiguration' instance must be created with an 'encryptionMode'. " + XSalsa20_CONSTRUCTOR_DEPRECATION, - level = DeprecationLevel.WARNING, + ReplaceWith( + "AudioFrameSenderConfiguration(server, ssrc, key, interceptorConfiguration, " + + "EncryptionMode.AeadXChaCha20Poly1305RtpSize)", + imports = ["dev.kord.voice.udp.AudioFrameSenderConfiguration", "dev.kord.voice.EncryptionMode"], + ), + DeprecationLevel.WARNING, ) public constructor( server: SocketAddress, ssrc: UInt, key: ByteArray, interceptorConfiguration: FrameInterceptorConfiguration,