From a044360f2369fbc13a2db0cb1c97f1ac7326e150 Mon Sep 17 00:00:00 2001 From: ChrisLovering Date: Thu, 18 Aug 2022 15:13:27 +0000 Subject: Deploying to docs from @ python-discord/bot-core@127d0efa219d29e15bd71339d0d2517945aed57c 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v8.0.0-beta.2/output/botcore.utils.interactions.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'v8.0.0-beta.2/output/botcore.utils.interactions.html') diff --git a/v8.0.0-beta.2/output/botcore.utils.interactions.html b/v8.0.0-beta.2/output/botcore.utils.interactions.html index 494131d2..539a858c 100644 --- a/v8.0.0-beta.2/output/botcore.utils.interactions.html +++ b/v8.0.0-beta.2/output/botcore.utils.interactions.html @@ -207,6 +207,10 @@ main +
  • + v8.1.0 +
  • +
  • v8.0.0-beta.4
  • @@ -330,7 +334,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.

    @@ -363,7 +367,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:
    @@ -372,7 +376,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.

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