Skip to content

V3 -> V4 Migration | LavalinkNodeOptions #142

Closed Answered by angelobreuer
Wellendox asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @Wellendox ,

you can configure the node options now using the service collection like the following:

services.ConfigureLavalink(x =>
{
    x.Label = "Lavalink";
    x.Passphrase = "password"; 
    x.ResumptionOptions = new LavalinkSessionResumptionOptions(TimeSpan.FromSeconds(15));
    x.ReadyTimeout = TimeSpan.FromSeconds(15);
})

I will add it to the migration guide later, thank you

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Wellendox
Comment options

Answer selected by angelobreuer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants