Browse Source

Update responding-to-buttons.md

Change event name from InteractionCreated to ButtonExecuted
pull/2339/head
Tesseract GitHub 3 years ago
parent
commit
f8fc5d3346
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/guides/int_basics/message-components/responding-to-buttons.md

+ 2
- 2
docs/guides/int_basics/message-components/responding-to-buttons.md View File

@@ -7,7 +7,7 @@ title: Responding to Components

Responding to buttons is pretty simple, there are a couple ways of doing it and we can cover both.

### Method 1: Hooking the InteractionCreated Event
### Method 1: Hooking the ButtonExecuted Event

We can hook the `ButtonExecuted` event for button type interactions:

@@ -34,4 +34,4 @@ public async Task MyButtonHandler(SocketMessageComponent component)

Running it and clicking the button:

![](images/image2.png)
![](images/image2.png)

Loading…
Cancel
Save