diff options
author | 2022-07-16 22:06:26 +0100 | |
---|---|---|
committer | 2022-07-16 22:06:26 +0100 | |
commit | f99b395b74bdbdcbdf36566966162cc06ed4d9b4 (patch) | |
tree | fb238573e9469fac03713c2e2add554446e3aee1 /botcore | |
parent | Merge 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.py | 2 |
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() |