aboutsummaryrefslogtreecommitdiffstats
path: root/botcore
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-07-16 22:06:26 +0100
committerGravatar Chris Lovering <[email protected]>2022-07-16 22:06:26 +0100
commitf99b395b74bdbdcbdf36566966162cc06ed4d9b4 (patch)
treefb238573e9469fac03713c2e2add554446e3aee1 /botcore
parentMerge pull request #103 from python-discord/add-interaction-utils (diff)
Fix interactions.DeleteMessageButton not working due to using wrong delete method.
Diffstat (limited to 'botcore')
-rw-r--r--botcore/utils/interactions.py2
1 files changed, 1 insertions, 1 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()