From 9cd3189ebf1e8016e12719d2808932a6bc997387 Mon Sep 17 00:00:00 2001 From: ChrisLovering Date: Mon, 10 Jul 2023 20:18:31 +0000 Subject: Deploying to docs from @ python-discord/bot-core@4c1060a334301265dd8b620c91a815a5ed72bb34 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/output/pydis_core.utils.interactions.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 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 a76a6d6a..93e4f8c4 100644 --- a/main/output/pydis_core.utils.interactions.html +++ b/main/output/pydis_core.utils.interactions.html @@ -211,6 +211,10 @@ main +
  • + v9.9.2 +
  • +
  • v9.9.1
  • @@ -402,7 +406,7 @@

    interactions#

    -class DeleteMessageButton(*, style=<ButtonStyle.secondary: 2>, label='Delete', **kwargs)[source]#
    +class DeleteMessageButton(*, style=<ButtonStyle.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.

    @@ -417,12 +421,12 @@
    -__init__(*, style=<ButtonStyle.secondary: 2>, label='Delete', **kwargs)[source]#
    +__init__(*, style=<ButtonStyle.secondary: 2>, label='Delete', **kwargs)[source]#
    -async callback(interaction)[source]#
    +async callback(interaction)[source]#

    Delete the original message on button click.

    Return type:
    @@ -435,7 +439,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 the original invoker and moderators to interact with it.

    @@ -452,12 +456,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:
    @@ -471,7 +475,7 @@ If None
    -async on_timeout()[source]#
    +async on_timeout()[source]#

    Remove the view from self.message if set.

    Return type:
    -- cgit v1.2.3