Update docs to reflect Text in Voice related changes

This commit is contained in:
UltimateSppy765 2022-04-04 03:10:51 +05:30 committed by GitHub
parent 58db635229
commit d5d9a532b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

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

View File

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