Skip to content

Commit 06a29e5

Browse files
committed
Expand docstring for Member.voice property
The docstring for the Member.voice property now includes a detailed Returns section, clarifying the return type and behavior when the member is not in a voice channel.
1 parent e90089d commit 06a29e5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

discord/member.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,13 @@ def guild_permissions(self) -> Permissions:
716716

717717
@property
718718
def voice(self) -> VoiceState | None:
719-
"""Returns the member's current voice state."""
719+
"""Returns the member's current voice state.
720+
721+
Returns
722+
-------
723+
Optional[:class:`VoiceState`]
724+
The member's voice state or ``None`` if the member is not in a voice channel.
725+
"""
720726
return self.guild._voice_state_for(self._user.id)
721727

722728
@property

0 commit comments

Comments
 (0)