From 723ffffde7de470359640a62c9a37a9db3939870 Mon Sep 17 00:00:00 2001 From: jb3 Date: Sun, 10 Aug 2025 21:32:36 +0000 Subject: Deploying to docs from @ python-discord/bot-core@0da291ca7e92893f5a05ed282248a68edcbbfa06 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/output/pydis_core.utils.interactions.html | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'main/output/pydis_core.utils.interactions.html') diff --git a/main/output/pydis_core.utils.interactions.html b/main/output/pydis_core.utils.interactions.html index 800ae608..b0ad40cf 100644 --- a/main/output/pydis_core.utils.interactions.html +++ b/main/output/pydis_core.utils.interactions.html @@ -330,6 +330,10 @@ v9.0.0 +
  • + v11.7.0 +
  • +
  • v11.6.1
  • @@ -475,7 +479,7 @@

    interactions¶

    -class DeleteMessageButton(*, style=('secondary', 2), label='Delete', **kwargs)[source]¶
    +class DeleteMessageButton(*, style=('secondary', 2), label='Delete', **kwargs)[source]¶

    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.

    @@ -490,12 +494,12 @@
    -__init__(*, style=('secondary', 2), label='Delete', **kwargs)[source]¶
    +__init__(*, style=('secondary', 2), label='Delete', **kwargs)[source]¶
    -async callback(interaction)[source]¶
    +async callback(interaction)[source]¶

    Delete the original message on button click.

    Return type:
    @@ -508,7 +512,7 @@
    -class ViewWithUserAndRoleCheck(*, allowed_users, allowed_roles, timeout=180.0, message=None)[source]¶
    +class ViewWithUserAndRoleCheck(*, allowed_users, allowed_roles, timeout=180.0, message=None)[source]¶

    Bases: View

    A view that allows only allows the specified users, or users with the specified roles, to interact with it.

    @@ -525,12 +529,12 @@ If None
    -__init__(*, allowed_users, allowed_roles, timeout=180.0, message=None)[source]¶
    +__init__(*, allowed_users, allowed_roles, timeout=180.0, message=None)[source]¶
    -async interaction_check(interaction)[source]¶
    +async interaction_check(interaction)[source]¶

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

    Parameters:
    @@ -544,7 +548,7 @@ If None
    -async on_timeout()[source]¶
    +async on_timeout()[source]¶

    Remove the view from self.message if set.

    Return type:
    @@ -555,7 +559,7 @@ If None
    -stop()[source]¶
    +stop()[source]¶

    Stop listening for interactions, and remove the view from self.message if set.

    Return type:
    @@ -568,7 +572,7 @@ If None
    -user_has_access(user, *, allowed_users=(), allowed_roles=())[source]¶
    +user_has_access(user, *, allowed_users=(), allowed_roles=())[source]¶

    Return whether the user is in the allowed_users list, or has a role from allowed_roles.

    Parameters:
    -- cgit v1.2.3