Skip to content

Commit

Permalink
Merge branch 'main' into feature/inactivity-event
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy authored Dec 23, 2023
2 parents fe1c753 + 4f7d0e6 commit cb45ecc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions wavelink/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,14 @@ def status(self) -> NodeStatus:

@property
def players(self) -> dict[int, Player]:
"""A mapping of :attr:`discord.Guild.id` to :class:`~wavelink.Player`."""
return self._players
"""A mapping of :attr:`discord.Guild.id` to :class:`~wavelink.Player`.
.. versionchanged:: 3.1.1
This property now returns a shallow copy of the internal mapping.
"""
return self._players.copy()

@property
def client(self) -> discord.Client | None:
Expand Down

0 comments on commit cb45ecc

Please sign in to comment.