Skip to content

Commit

Permalink
Small fixes to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Dec 23, 2023
1 parent cb45ecc commit 5e117b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions docs/wavelink.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ An event listener in a cog.

Triggered when the :attr:`~wavelink.Player.inactive_timeout` countdown expires for the specific :class:`~wavelink.Player`.

See: :attr:`~wavelink.Player.inactive_timeout`
See: :class:`~wavelink.Node` for setting a default on all players.

- See: :attr:`~wavelink.Player.inactive_timeout`
- See: :class:`~wavelink.Node` for setting a default on all players.


Examples
Expand Down
4 changes: 3 additions & 1 deletion wavelink/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ class Node:
If this is ``0`` or below, resuming will be disabled. Defaults to ``60``.
inactive_player_timeout: int | None
Set the default for :attr:`wavelink.Player.inactive_timeout` on every player that connects to this node.
Defaults to ``300``. See also: :func:`on_wavelink_inactive_player`.
Defaults to ``300``.
See also: :func:`on_wavelink_inactive_player`.
"""

def __init__(
Expand Down
5 changes: 3 additions & 2 deletions wavelink/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,9 @@ def inactive_timeout(self) -> int | None:
When this property is set, the timeout will reset, and all previously waiting countdowns are cancelled.
See: :class:`~wavelink.Node`
See: :func:`on_wavelink_inactive_player`
- See: :class:`~wavelink.Node`
- See: :func:`on_wavelink_inactive_player`
.. versionadded:: 3.2.0
"""
Expand Down

0 comments on commit 5e117b3

Please sign in to comment.