|
|
@@ -26,7 +26,10 @@ This branch is on pause and does not work currently, There is a pull request ope |
|
|
|
### feature/xyz |
|
|
|
These branches are features for new things, you are more than welcome to clone them and give feedback in the discord server or issues tab. |
|
|
|
|
|
|
|
## Listening for interactions |
|
|
|
## Listening for Interactions |
|
|
|
|
|
|
|
Interaction docs can be found [here](https://github.com/Discord-Net-Labs/Discord.Net-Labs/tree/release/3.x/docs/guides/interactions). They are much more in depth than this readme. |
|
|
|
|
|
|
|
```cs |
|
|
|
// Subscribe to the InteractionCreated event |
|
|
|
client.InteractionCreated += Client_InteractionCreated; |
|
|
@@ -124,5 +127,8 @@ await Context.Channel.SendMessageAsync("Test selection!", component: builder.Bui |
|
|
|
|
|
|
|
> Note: You can only have 5 buttons per row and 5 rows per message. If a row contains a selection dropdown it cannot contain any buttons. |
|
|
|
|
|
|
|
## Slash commands |
|
|
|
Slash command example how to's can be found [here](https://github.com/Discord-Net-Labs/Discord.Net-Labs/tree/Interactions/docs/guides/slash-commands). |
|
|
|
## Slash Commands & Context Menu Commands |
|
|
|
Slash command & Context command examples and how to's can be found [here](https://github.com/Discord-Net-Labs/Discord.Net-Labs/tree/release/3.x/docs/guides/interactions/application-commands). |
|
|
|
|
|
|
|
## Message Components |
|
|
|
Message components (buttons, menus, etc) examples and how to's can be found [here](https://github.com/Discord-Net-Labs/Discord.Net-Labs/tree/release/3.x/docs/guides/interactions/message-components) |