From 0578a99ad0d68829d1f74a482598046d478f109b Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Thu, 25 May 2023 17:43:59 +0200 Subject: [PATCH] Add versionchanged doc to add_cog --- discord/ext/commands/bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 3783a6c58..8b337ca42 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -790,6 +790,8 @@ class BotBase(GroupMixin[None]): the guild the app commands will be added to. If not given, all app commands will be global. + .. versionchanged:: 2.3 + This kwarg is now also used by hybrid app commands. .. versionadded:: 2.0 guilds: List[:class:`~discord.abc.Snowflake`] If the cog has application commands, then these @@ -797,6 +799,8 @@ class BotBase(GroupMixin[None]): If not given, all app commands will be global. Cannot be mixed with ``guild``. + .. versionchanged:: 2.3 + This kwarg is now also used by hybrid app commands. .. versionadded:: 2.0 Raises