Skip to content

Commit

Permalink
Merge pull request #86 from FallenDeity/Resolve-#85
Browse files Browse the repository at this point in the history
Update slash-commands.md
  • Loading branch information
FallenDeity authored Oct 3, 2024
2 parents 4064673 + 50c38a4 commit 2d9c7a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/slash-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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%;"}
Expand All @@ -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
Expand Down

0 comments on commit 2d9c7a1

Please sign in to comment.