From fe7d7f2ce6b7942609c04470ff2a5c3b1bb6cbe0 Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Sat, 19 Apr 2025 12:15:57 +0200 Subject: [PATCH] chore: Update view param docstring on send methods --- discord/abc.py | 2 +- discord/channel.py | 2 +- discord/ext/commands/context.py | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/discord/abc.py b/discord/abc.py index 748a021d7..505552684 100644 --- a/discord/abc.py +++ b/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. diff --git a/discord/channel.py b/discord/channel.py index 8833f566e..f17a74ca8 100644 --- a/discord/channel.py +++ b/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` diff --git a/discord/ext/commands/context.py b/discord/ext/commands/context.py index 20eb70599..931142b38 100644 --- a/discord/ext/commands/context.py +++ b/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.