Skip to content

Add a generic view and button#103

Merged
HassanAbouelela merged 1 commit into
mainfrom
add-interaction-utils
Jul 16, 2022
Merged

Add a generic view and button#103
HassanAbouelela merged 1 commit into
mainfrom
add-interaction-utils

Conversation

@ChrisLovering
Copy link
Copy Markdown
Member

@ChrisLovering ChrisLovering commented Jul 16, 2022

The view implements an interaction check for allowed_users and allowed_roles.

The button deleted the message attached the the parent view on click.

Changelog:
image

Docs:
image

@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 16, 2022

Deploy Preview for bot-core failed.

Name Link
🔨 Latest commit c20c19c
🔍 Latest deploy log https://app.netlify.com/sites/bot-core/deploys/62d300533871390009a91c0d

@ChrisLovering ChrisLovering force-pushed the add-interaction-utils branch from 9278758 to dcac08c Compare July 16, 2022 18:14
The view implements an interaction check for allowed_users and allowed_roles.

The button deleted the message attached the the parent view on click.
@ChrisLovering ChrisLovering force-pushed the add-interaction-utils branch from dcac08c to c20c19c Compare July 16, 2022 18:15
Comment thread docs/changelog.rst
Changelog
=========

- :release:`7.3.0 <16th July 2022>`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lucky for you, bot-core is an efficient machine.

Comment thread docs/changelog.rst

- :release:`7.3.0 <16th July 2022>`
- :feature:`103` Add a generic view :obj:`botcore.utils.interactions.ViewWithUserAndRoleCheck` that only allows specified users and roles to interaction with it
- :feature:`103` Add a button :obj:`botcore.utils.interactions.DeleteMessageButton` that deletes the message attached to its parent view.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder what happens if these refs are removed eventually. 404s?

@HassanAbouelela HassanAbouelela merged commit 9c0e5a6 into main Jul 16, 2022
@HassanAbouelela HassanAbouelela deleted the add-interaction-utils branch July 16, 2022 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants