Skip to content

Commit

Permalink
Add ReplaceWith for AudioFrameSenderConfiguration constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann committed Nov 2, 2024
1 parent b2554eb commit f390507
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion voice/src/main/kotlin/udp/AudioFrameSender.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f390507

Please sign in to comment.