From 7a1270a3782f04548c8c9527006cd1ae6a04b51b Mon Sep 17 00:00:00 2001 From: HassanAbouelela Date: Sat, 23 Jul 2022 15:20:09 +0000 Subject: Deploying to docs from @ python-discord/bot-core@94c4b408f1afa604ae6907aa28ab694870af20f2 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/output/botcore.utils.interactions.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'main/output/botcore.utils.interactions.html') diff --git a/main/output/botcore.utils.interactions.html b/main/output/botcore.utils.interactions.html index cb9de5ba..0d257ae6 100644 --- a/main/output/botcore.utils.interactions.html +++ b/main/output/botcore.utils.interactions.html @@ -183,6 +183,7 @@

Other:

@@ -308,7 +309,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.

@@ -323,12 +324,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:
@@ -341,7 +342,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.

@@ -358,12 +359,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:
@@ -377,7 +378,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