Skip to content

Commit 1f2d7d4

Browse files
authored
Fix wrong deprecation annotation (#15)
Currently, the ReplaceWith annotation tells IntelliJ to replace with `subscribe()`, which is not correct, since this will replace with subscribe().subscribe() in most cases, or even worse destroy things like asMono().map().subscribe(), replacing it with this, will tell the IDE to use the instance of PlayerUpdateBuilder as a Mono like it is intended
1 parent 68c29a4 commit 1f2d7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/dev/arbjerg/lavalink/client/PlayerUpdateBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class PlayerUpdateBuilder internal constructor(private val node: LavalinkNode, p
128128

129129
@Deprecated(
130130
message = "This method causes improper usage of the reactor system",
131-
replaceWith = ReplaceWith("subscribe()")
131+
replaceWith = ReplaceWith("this")
132132
)
133133
fun asMono(): Mono<LavalinkPlayer> = this
134134

0 commit comments

Comments
 (0)