From a26b9d6d3acd0c337432bd82f51bd27b598c4394 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Sun, 24 Mar 2024 00:16:44 +0100 Subject: [PATCH] Fix behavior of the menu() function calls without user param (#6324) --- CHANGES.rst | 4 ++-- redbot/core/utils/menus.py | 6 +++--- redbot/core/utils/views.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 4fb6d7c5f0f..26e81dd9f3e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -63,12 +63,12 @@ Changes - **Core - Utils Package** - The `menu()` utility function received a new `provisional ` ``user`` parameter for defining who can interact with the menu (instead of the default ``ctx.author``) (:issue:`4913`) If no issues arise, we plan on including this parameter under developer guarantees - in the first release made after 2024-05-18. + in the first release made after 2024-05-24. - **Core - Utils Package** - The `SimpleMenu.start()` method received a new `provisional ` ``user`` parameter for defining who can interact with the menu (instead of the default ``ctx.author``) (:issue:`4913`) If no issues arise, we plan on including this parameter under developer guarantees - in the first release made after 2024-05-18. + in the first release made after 2024-05-24. Fixes ***** diff --git a/redbot/core/utils/menus.py b/redbot/core/utils/menus.py index d3a52dde78e..b5ee86a01cf 100644 --- a/redbot/core/utils/menus.py +++ b/redbot/core/utils/menus.py @@ -80,7 +80,7 @@ async def menu( The ``user`` parameter is considered `provisional `. If no issues arise, we plan on including it under developer guarantees - in the first release made after 2024-05-18. + in the first release made after 2024-05-24. .. warning:: @@ -168,7 +168,7 @@ async def control_no(*args, **kwargs): This parameter is `provisional `. If no issues arise, we plan on including it under developer guarantees - in the first release made after 2024-05-18. + in the first release made after 2024-05-24. Raises ------ @@ -287,7 +287,7 @@ async def control_no(*args, **kwargs): if len(done) == 0: raise asyncio.TimeoutError() - react, user = done.pop().result() + react, __ = done.pop().result() except asyncio.TimeoutError: if not ctx.me: return diff --git a/redbot/core/utils/views.py b/redbot/core/utils/views.py index 51fb9efa9d6..cd588cae96b 100644 --- a/redbot/core/utils/views.py +++ b/redbot/core/utils/views.py @@ -249,7 +249,7 @@ async def start( The ``user`` parameter is considered `provisional `. If no issues arise, we plan on including it under developer guarantees - in the first release made after 2024-05-18. + in the first release made after 2024-05-24. Parameters ---------- @@ -263,7 +263,7 @@ async def start( This parameter is `provisional `. If no issues arise, we plan on including it under developer guarantees - in the first release made after 2024-05-18. + in the first release made after 2024-05-24. ephemeral: `bool` Send the message ephemerally. This only works if the context is from a slash command interaction.