update docs
This commit is contained in:
parent
5676d35681
commit
b1ec08026d
|
|
@ -67,6 +67,18 @@ There are also properties the `Player` class has to access certain values:
|
|||
- `float`
|
||||
- Returns the player’s position in a track in milliseconds.
|
||||
|
||||
* - `Player.adjusted_position`
|
||||
- `float`
|
||||
- Returns the player’s position in a track in milliseconds, adjusted for rate if affected.
|
||||
|
||||
* - `Player.adjusted_length`
|
||||
- `float`
|
||||
- Returns the current track length in milliseconds, adjusted for rate if affected.
|
||||
|
||||
* - `Player.rate`
|
||||
- `float`
|
||||
- Returns the players current rate, which represents the speed of the currently playing track. This rate is affected by the `Timescale` filter.
|
||||
|
||||
* - `Player.volume`
|
||||
- `int`
|
||||
- Returns the players current volume.
|
||||
|
|
|
|||
|
|
@ -66,6 +66,10 @@ After you have initialized your function, we need to fill in the proper paramete
|
|||
- Set this value to `True` if you want Pomice to automatically switch all players to another available node if one disconnects.
|
||||
You must have two or more nodes to be able to do this.
|
||||
|
||||
* - `log_level`
|
||||
- `LogLevel`
|
||||
- The logging level for the node. The default logging level is `LogLevel.INFO`.
|
||||
|
||||
:::
|
||||
|
||||
|
||||
|
|
@ -84,7 +88,8 @@ await NodePool.create_node(
|
|||
spotify_client_id="<your spotify client id here>",
|
||||
spotify_client_secret="<your spotify client secret here>"
|
||||
apple_music=<True/False>,
|
||||
fallback=<True/False>
|
||||
fallback=<True/False>,
|
||||
log_level=<optiona LogLevel here>
|
||||
)
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue