Browse Source

chore: Update view param docstring on send methods

pull/10166/head
DA-344 2 months ago
parent
commit
fe7d7f2ce6
  1. 2
      discord/abc.py
  2. 2
      discord/channel.py
  3. 4
      discord/ext/commands/context.py

2
discord/abc.py

@ -1551,7 +1551,7 @@ class Messageable:
.. versionadded:: 2.0
.. versionchanged:: 2.6
This parameter now accepts :class:`discord.ui.LayoutView` instances.
This now accepts :class:`discord.ui.LayoutView` instances.
stickers: Sequence[Union[:class:`~discord.GuildSticker`, :class:`~discord.StickerItem`]]
A list of stickers to upload. Must be a maximum of 3.

2
discord/channel.py

@ -2911,7 +2911,7 @@ class ForumChannel(discord.abc.GuildChannel, Hashable):
A Discord UI View to add to the message.
.. versionchanged:: 2.6
This parameter now accepts :class:`discord.ui.LayoutView` instances.
This now accepts :class:`discord.ui.LayoutView` instances.
stickers: Sequence[Union[:class:`~discord.GuildSticker`, :class:`~discord.StickerItem`]]
A list of stickers to upload. Must be a maximum of 3.
suppress_embeds: :class:`bool`

4
discord/ext/commands/context.py

@ -986,10 +986,12 @@ class Context(discord.abc.Messageable, Generic[BotT]):
This is ignored for interaction based contexts.
.. versionadded:: 1.6
view: :class:`discord.ui.View`
view: Union[:class:`discord.ui.View`, :class:`discord.ui.LayoutView`]
A Discord UI View to add to the message.
.. versionadded:: 2.0
.. versionchanged:: 2.6
This now accepts :class:`discord.ui.LayoutView` instances.
embeds: List[:class:`~discord.Embed`]
A list of embeds to upload. Must be a maximum of 10.

Loading…
Cancel
Save