Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit cb45ecc

Browse files
authored
Merge branch 'main' into feature/inactivity-event
2 parents fe1c753 + 4f7d0e6 commit cb45ecc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

wavelink/node.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,14 @@ def status(self) -> NodeStatus:
218218

219219
@property
220220
def players(self) -> dict[int, Player]:
221-
"""A mapping of :attr:`discord.Guild.id` to :class:`~wavelink.Player`."""
222-
return self._players
221+
"""A mapping of :attr:`discord.Guild.id` to :class:`~wavelink.Player`.
222+
223+
224+
.. versionchanged:: 3.1.1
225+
226+
This property now returns a shallow copy of the internal mapping.
227+
"""
228+
return self._players.copy()
223229

224230
@property
225231
def client(self) -> discord.Client | None:

0 commit comments

Comments
 (0)