Skip to content

Commit

Permalink
Add basic toString rep to node
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Feb 12, 2024
1 parent 0bf628d commit 533f8e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/kotlin/dev/arbjerg/lavalink/client/LavalinkNode.kt
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ class LavalinkNode(
lavalink.transferOrphansTo(this)
}



override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
Expand All @@ -435,4 +437,8 @@ class LavalinkNode(
result = 31 * result + available.hashCode()
return result
}

override fun toString(): String {
return "LavalinkNode(name=$name, address=$baseUri, sessionId=$sessionId)"
}
}

0 comments on commit 533f8e1

Please sign in to comment.