From 50c38a4c2b93aac6902047f791a8961768ef0224 Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 4 Oct 2024 00:35:11 +0530 Subject: [PATCH] Update slash-commands.md --- docs/slash-commands.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/slash-commands.md b/docs/slash-commands.md index 67deb7d..319f21b 100644 --- a/docs/slash-commands.md +++ b/docs/slash-commands.md @@ -160,7 +160,7 @@ To edit a response, you can use the `discord.Interaction.edit_original_response` @bot.tree.command() async def echo(interaction: discord.Interaction, message: str) -> None: await interaction.response.send_message(message) - await interaction.response.edit_original_response("This is an edited message.") + await interaction.edit_original_response("This is an edited message.") ``` ![Edited Message](assets/slash-commands/edited-message.png){: style="width: 100%;"} @@ -173,7 +173,7 @@ To delete a response, you can use the `discord.Interaction.delete_original_respo @bot.tree.command() async def echo(interaction: discord.Interaction, message: str) -> None: await interaction.response.send_message(message) - await interaction.response.delete_original_response() + await interaction.delete_original_response() ``` ### Deferring Responses