Add support for sending messages and managing webhooks in VoiceChannel

This commit is contained in:
Rapptz
2022-04-02 11:10:14 -04:00
parent b049cf77f2
commit 2aca705b95
5 changed files with 355 additions and 111 deletions

View File

@@ -641,7 +641,9 @@ class PartialMessage(Hashable):
ChannelType.public_thread,
ChannelType.private_thread,
):
raise TypeError(f'Expected PartialMessageable, TextChannel, DMChannel or Thread not {type(channel)!r}')
raise TypeError(
f'expected PartialMessageable, TextChannel, VoiceChannel, DMChannel or Thread not {type(channel)!r}'
)
self.channel: MessageableChannel = channel
self._state: ConnectionState = channel._state