Browse Source

Fix Member.move_to typehint and docstring

pull/7607/head
Lucas Hardt 3 years ago
committed by GitHub
parent
commit
8825bf922f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      discord/member.py

6
discord/member.py

@ -771,7 +771,7 @@ class Member(discord.abc.Messageable, _UserTag):
roles: List[:class:`Role`]
The member's new list of roles. This *replaces* the roles.
voice_channel: Optional[:class:`VoiceChannel`]
voice_channel: Optional[Union[:class:`VoiceChannel`, :class:`StageChannel`]]
The voice channel to move the member to.
Pass ``None`` to kick them from voice.
timed_out_until: Optional[:class:`datetime.datetime`]
@ -891,7 +891,7 @@ class Member(discord.abc.Messageable, _UserTag):
else:
await self._state.http.edit_my_voice_state(self.guild.id, payload)
async def move_to(self, channel: VocalGuildChannel, *, reason: Optional[str] = None) -> None:
async def move_to(self, channel: Optional[VocalGuildChannel], *, reason: Optional[str] = None) -> None:
"""|coro|
Moves a member to a new voice channel (they must be connected first).
@ -906,7 +906,7 @@ class Member(discord.abc.Messageable, _UserTag):
Parameters
-----------
channel: Optional[:class:`VoiceChannel`]
channel: Optional[Union[:class:`VoiceChannel`, :class:`StageChannel`]]
The new voice channel to move the member to.
Pass ``None`` to kick them from voice.
reason: Optional[:class:`str`]

Loading…
Cancel
Save