mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +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:
|
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`]
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user