Skip to content

Commit

Permalink
fix: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Nov 13, 2023
1 parent 02b297d commit b2481e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ await player.update({ ...playerOptions });
> Setting a custom get node ideal function
```js
const shoukaku = new Shoukaku(new Connectors.DiscordJS(client), [{...yourNodeOptions}], {
...yourShoukakuOptions,
nodeResolver: (nodes, connection) => getYourIdealNode(nodes, connection)
});
const player = await shoukaku.joinVoiceChannel({
guildId: 'your_guild_id',
channelId: 'your_channel_id',
shardId: 0,
getNode: (nodes, connection) => {
nodes = [ ...nodes.values() ];
return nodes.find(node => node.group === connection.region);
}
shardId: 0
});
```
Expand Down

0 comments on commit b2481e5

Please sign in to comment.