Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

Commit d5d9a53

Browse files
Update docs to reflect Text in Voice related changes
1 parent 58db635 commit d5d9a53

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

discord/message.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ class PartialMessage(Hashable):
598598
the constructor itself, and the second is via the following:
599599
600600
- :meth:`TextChannel.get_partial_message`
601+
- :meth:`VoiceChannel.get_partial_message`
601602
- :meth:`Thread.get_partial_message`
602603
- :meth:`DMChannel.get_partial_message`
603604
@@ -621,7 +622,7 @@ class PartialMessage(Hashable):
621622
622623
Attributes
623624
-----------
624-
channel: Union[:class:`PartialMessageable`, :class:`TextChannel`, :class:`Thread`, :class:`DMChannel`]
625+
channel: Union[:class:`PartialMessageable`, :class:`TextChannel`, :class:`VoiceChannel`, :class:`Thread`, :class:`DMChannel`]
625626
The channel associated with this partial message.
626627
id: :class:`int`
627628
The message ID.
@@ -1243,7 +1244,7 @@ class Message(PartialMessage, Hashable):
12431244
This is not stored long term within Discord's servers and is only used ephemerally.
12441245
embeds: List[:class:`Embed`]
12451246
A list of embeds the message has.
1246-
channel: Union[:class:`TextChannel`, :class:`Thread`, :class:`DMChannel`, :class:`GroupChannel`, :class:`PartialMessageable`]
1247+
channel: Union[:class:`TextChannel`, :class:`VoiceChannel`, :class:`Thread`, :class:`DMChannel`, :class:`GroupChannel`, :class:`PartialMessageable`]
12471248
The :class:`TextChannel` or :class:`Thread` that the message was sent from.
12481249
Could be a :class:`DMChannel` or :class:`GroupChannel` if it's a private message.
12491250
reference: Optional[:class:`~discord.MessageReference`]

discord/webhook/async_.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,10 @@ class Webhook(BaseWebhook):
969969
bot user or authentication.
970970
971971
There are two main ways to use Webhooks. The first is through the ones
972-
received by the library such as :meth:`.Guild.webhooks` and
973-
:meth:`.TextChannel.webhooks`. The ones received by the library will
974-
automatically be bound using the library's internal HTTP session.
972+
received by the library such as :meth:`.Guild.webhooks`,
973+
:meth:`.TextChannel.webhooks` and :meth:`.VoiceChannel.webhooks`.
974+
The ones received by the library will automatically be
975+
bound using the library's internal HTTP session.
975976
976977
The second form involves creating a webhook object manually using the
977978
:meth:`~.Webhook.from_url` or :meth:`~.Webhook.partial` classmethods.

0 commit comments

Comments
 (0)