From 0a068679f4c82a66c514c69ab1a7a569a736ed0f Mon Sep 17 00:00:00 2001 From: HassanAbouelela Date: Mon, 12 Dec 2022 18:11:20 +0000 Subject: Deploying to docs from @ python-discord/bot-core@9c728dff2351a0170b372fec76e2b5e15f8846f3 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v8.2.0/output/botcore.utils.interactions.html | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'v8.2.0/output/botcore.utils.interactions.html') diff --git a/v8.2.0/output/botcore.utils.interactions.html b/v8.2.0/output/botcore.utils.interactions.html index 6590e2ec..49ffcfe3 100644 --- a/v8.2.0/output/botcore.utils.interactions.html +++ b/v8.2.0/output/botcore.utils.interactions.html @@ -5,14 +5,14 @@ - + interactions - Pydis Core v8.2.0 - + - + @@ -156,7 +156,7 @@ Pydis Core v8.2.0 @@ -207,6 +207,10 @@ main +
  • + v9.1.1 +
  • +
  • v9.0.0
  • @@ -351,7 +355,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.

    @@ -384,7 +388,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:
    @@ -393,7 +397,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.

  • @@ -409,7 +413,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

    @@ -469,9 +473,7 @@ If None
    -
    - -
    +
    -- cgit v1.2.3