Skip to content

Commit 533f8e1

Browse files
committed
Add basic toString rep to node
1 parent 0bf628d commit 533f8e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ class LavalinkNode(
412412
lavalink.transferOrphansTo(this)
413413
}
414414

415+
416+
415417
override fun equals(other: Any?): Boolean {
416418
if (this === other) return true
417419
if (javaClass != other?.javaClass) return false
@@ -435,4 +437,8 @@ class LavalinkNode(
435437
result = 31 * result + available.hashCode()
436438
return result
437439
}
440+
441+
override fun toString(): String {
442+
return "LavalinkNode(name=$name, address=$baseUri, sessionId=$sessionId)"
443+
}
438444
}

0 commit comments

Comments
 (0)