mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix Member.move_to typehint and docstring
This commit is contained in:
parent
cb7ecf0938
commit
8825bf922f
@ -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…
x
Reference in New Issue
Block a user