Skip to content

Commit

Permalink
Update guide/docs/interactions/buttons.mdx
Browse files Browse the repository at this point in the history
wording in timeout example slash command

Co-authored-by: shiftinv <[email protected]>
Signed-off-by: DLCHAMP <[email protected]>
  • Loading branch information
dlchamp and shiftinv authored Aug 27, 2023
1 parent b919751 commit 222c413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guide/docs/interactions/buttons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ async def buttons(inter: disnake.ApplicationCommandInteraction):
view = TimeoutButtonView(timeout=120)
await inter.response.send_message("Need help?", view=view)

# Because this type of interaction response does not return a message, we will need
# Because interaction responses do not return a message, we will need
# to fetch the message and assign it to `View.message` to be used if `on_timeout` is called.
View.message = await inter.original_response()
view.message = await inter.original_response()
```

## Views vs. low-level components
Expand Down

0 comments on commit 222c413

Please sign in to comment.