Browse Source

Update docs to reflect Text in Voice related changes

pull/7791/head
UltimateSppy765 3 years ago
committed by GitHub
parent
commit
d5d9a532b2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      discord/message.py
  2. 7
      discord/webhook/async_.py

5
discord/message.py

@ -598,6 +598,7 @@ class PartialMessage(Hashable):
the constructor itself, and the second is via the following:
- :meth:`TextChannel.get_partial_message`
- :meth:`VoiceChannel.get_partial_message`
- :meth:`Thread.get_partial_message`
- :meth:`DMChannel.get_partial_message`
@ -621,7 +622,7 @@ class PartialMessage(Hashable):
Attributes
-----------
channel: Union[:class:`PartialMessageable`, :class:`TextChannel`, :class:`Thread`, :class:`DMChannel`]
channel: Union[:class:`PartialMessageable`, :class:`TextChannel`, :class:`VoiceChannel`, :class:`Thread`, :class:`DMChannel`]
The channel associated with this partial message.
id: :class:`int`
The message ID.
@ -1243,7 +1244,7 @@ class Message(PartialMessage, Hashable):
This is not stored long term within Discord's servers and is only used ephemerally.
embeds: List[:class:`Embed`]
A list of embeds the message has.
channel: Union[:class:`TextChannel`, :class:`Thread`, :class:`DMChannel`, :class:`GroupChannel`, :class:`PartialMessageable`]
channel: Union[:class:`TextChannel`, :class:`VoiceChannel`, :class:`Thread`, :class:`DMChannel`, :class:`GroupChannel`, :class:`PartialMessageable`]
The :class:`TextChannel` or :class:`Thread` that the message was sent from.
Could be a :class:`DMChannel` or :class:`GroupChannel` if it's a private message.
reference: Optional[:class:`~discord.MessageReference`]

7
discord/webhook/async_.py

@ -969,9 +969,10 @@ class Webhook(BaseWebhook):
bot user or authentication.
There are two main ways to use Webhooks. The first is through the ones
received by the library such as :meth:`.Guild.webhooks` and
:meth:`.TextChannel.webhooks`. The ones received by the library will
automatically be bound using the library's internal HTTP session.
received by the library such as :meth:`.Guild.webhooks`,
:meth:`.TextChannel.webhooks` and :meth:`.VoiceChannel.webhooks`.
The ones received by the library will automatically be
bound using the library's internal HTTP session.
The second form involves creating a webhook object manually using the
:meth:`~.Webhook.from_url` or :meth:`~.Webhook.partial` classmethods.

Loading…
Cancel
Save