|
|
@ -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`] |
|
|
|