Skip to content

Commit a54223d

Browse files
Update examples/views/new_components.py
Co-authored-by: plun1331 <[email protected]> Signed-off-by: UK <[email protected]>
1 parent 80ff839 commit a54223d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/views/new_components.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ def __init__(self, user: User):
5959
@button(label="Delete Message", style=ButtonStyle.red, id=200)
6060
async def delete_button(self, button: Button, interaction: Interaction):
6161
await interaction.response.defer(invisible=True)
62-
await interaction.delete_original_response()
62+
await interaction.message.delete()
63+
6364

6465
async def on_timeout(self):
6566
self.get_item(200).disabled = True

0 commit comments

Comments
 (0)