aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-07-16 22:23:08 +0100
committerGravatar GitHub <[email protected]>2022-07-16 22:23:08 +0100
commitc448b69160e287826268db6f499eef81c4005e5a (patch)
treefb238573e9469fac03713c2e2add554446e3aee1
parentMerge pull request #103 from python-discord/add-interaction-utils (diff)
parentFix interactions.DeleteMessageButton not working due to using wrong delete me... (diff)
Merge pull request #104 from python-discord/fix-delete-buttonv7.3.1
-rw-r--r--botcore/utils/interactions.py2
-rw-r--r--docs/changelog.rst4
-rw-r--r--pyproject.toml2
3 files changed, 6 insertions, 2 deletions
diff --git a/botcore/utils/interactions.py b/botcore/utils/interactions.py
index 6d632c53..60b8c1f7 100644
--- a/botcore/utils/interactions.py
+++ b/botcore/utils/interactions.py
@@ -83,4 +83,4 @@ class DeleteMessageButton(ui.Button):
async def callback(self, interaction: Interaction) -> None:
"""Delete the original message on button click."""
- await interaction.delete_original_message()
+ await interaction.message.delete()
diff --git a/docs/changelog.rst b/docs/changelog.rst
index cbe37062..493b34e2 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -4,6 +4,10 @@
Changelog
=========
+- :release:`7.3.1 <16th July 2022>`
+- :bug:`104` Fix :obj:`botcore.utils.interactions.DeleteMessageButton` not working due to using wrong delete method.
+
+
- :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.
diff --git a/pyproject.toml b/pyproject.toml
index cff654ca..ab406c86 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bot-core"
-version = "7.3.0"
+version = "7.3.1"
description = "Bot-Core provides the core functionality and utilities for the bots of the Python Discord community."
authors = ["Python Discord <[email protected]>"]
license = "MIT"