mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Add support for sending messages and managing webhooks in VoiceChannel
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user