aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"