mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Update docs to reflect Text in Voice related changes
This commit is contained in:
parent
58db635229
commit
d5d9a532b2
@ -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`]
|
||||
|
@ -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…
x
Reference in New Issue
Block a user