Skip to content

Commit

Permalink
Fix runtime exception in music plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 22, 2024
1 parent feda611 commit 2af4274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion music/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
subprojects {
version = "3.11.7-SNAPSHOT"
version = "3.11.8-SNAPSHOT"
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class LavalinkManager(context: PluginContext) : MikBotModule(context) {
fun getLink(guild: GuildBehavior) = lavalink.getLink(guild.id)

@Suppress("INVISIBLE_REFERENCE")
fun newNode() = (lavalink as AbstractLavakord).loadBalancer.determineBestNode(Snowflake.min)
fun newNode() = (lavalink as AbstractLavakord).loadBalancer.determineBestNode(Snowflake.min.value)
?: error("No node found")

override suspend fun unload() {
Expand Down

0 comments on commit 2af4274

Please sign in to comment.