From bea01f55a87a9f5c523ed9419419187a70798cf4 Mon Sep 17 00:00:00 2001 From: ChrisLovering Date: Tue, 18 Feb 2025 19:41:52 +0000 Subject: Deploying to docs from @ python-discord/bot-core@16835478af6b842d776d634e53aab8ee31bd350c πŸš€ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v11.0.0/output/pydis_core.utils.interactions.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'v11.0.0/output/pydis_core.utils.interactions.html') diff --git a/v11.0.0/output/pydis_core.utils.interactions.html b/v11.0.0/output/pydis_core.utils.interactions.html index 1bfcd5ba..857063c3 100644 --- a/v11.0.0/output/pydis_core.utils.interactions.html +++ b/v11.0.0/output/pydis_core.utils.interactions.html @@ -7,12 +7,12 @@ interactions - Pydis Core v11.0.0 - + - - + + @@ -468,7 +468,7 @@
class DeleteMessageButton(*, style=('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 pydis_core.utils.interactions.ViewWithUserAndRoleCheck for a view that implements basic checks.

@@ -501,7 +501,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:
@@ -510,7 +510,7 @@
  • allowed_roles (Sequence[int]) – A sequence of role ids that are allowed to interact with the view.

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

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

  • message (Message | None) – 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.

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

    @@ -565,7 +565,7 @@ If None
    Parameters:
      -
    • user (User | Member) – The user to check

    • +
    • user (User | Member) – The user to check

    • allowed_users (Sequence[int]) – A sequence of user ids that are allowed access

    • allowed_roles (Sequence[int]) – A sequence of role ids that are allowed access

    -- cgit v1.2.3