From d2477c5ed83ea64d34979b144f291a54f2994ed9 Mon Sep 17 00:00:00 2001 From: ChrisLovering Date: Tue, 28 Feb 2023 15:01:43 +0000 Subject: Deploying to docs from @ python-discord/bot-core@19d75111d5e6b0237381bfd39d20144d444a551e 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v7.4.0/output/botcore.utils.interactions.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'v7.4.0/output/botcore.utils.interactions.html') diff --git a/v7.4.0/output/botcore.utils.interactions.html b/v7.4.0/output/botcore.utils.interactions.html index c2cd9e4b..58acb1a8 100644 --- a/v7.4.0/output/botcore.utils.interactions.html +++ b/v7.4.0/output/botcore.utils.interactions.html @@ -11,8 +11,8 @@ - + @@ -205,6 +205,10 @@ main +
  • + v9.4.1 +
  • +
  • v9.4.0
  • @@ -365,7 +369,7 @@
    class DeleteMessageButton(*, style=<ButtonStyle.secondary: 2>, label='Delete', **kwargs)[source]#
    -

    Bases: Button

    +

    Bases: Button

    A button that can be added to a view to delete the message containing the view on click.

    This button itself carries out no interaction checks, these should be done by the parent view.

    See botcore.utils.interactions.ViewWithUserAndRoleCheck for a view that implements basic checks.

    @@ -398,7 +402,7 @@
    class ViewWithUserAndRoleCheck(*, allowed_users, allowed_roles, timeout=180.0, message=None)[source]#
    -

    Bases: View

    +

    Bases: View

    A view that allows the original invoker and moderators to interact with it.

    Parameters:
    @@ -407,7 +411,7 @@
  • allowed_roles (Sequence[int]) – A sequence of role ids that are allowed to interact with the view.

  • timeout (Optional[float]) – Timeout in seconds from last interaction with the UI before no longer accepting input. If None then there is no timeout.

  • -
  • message (Optional[Message]) – The message to remove the view from on timeout. This can also be set with +

  • message (Optional[Message]) – The message to remove the view from on timeout. This can also be set with view.message = await ctx.send( ... )` , or similar, after the view is instantiated.

  • @@ -423,7 +427,7 @@ If None

    Ensure the user clicking the button is the view invoker, or a moderator.

    Parameters:
    -

    interaction (Interaction) – The interaction that occurred.

    +

    interaction (Interaction) – The interaction that occurred.

    Return type:

    bool

    -- cgit v1.2.3