Browse Source

Update README.md

pull/1923/head
Quin Lynch GitHub 3 years ago
parent
commit
1f57f62c47
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      README.md

+ 9
- 3
README.md View File

@@ -26,7 +26,10 @@ This branch is on pause and does not work currently, There is a pull request ope
### feature/xyz ### 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. 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 ```cs
// Subscribe to the InteractionCreated event // Subscribe to the InteractionCreated event
client.InteractionCreated += Client_InteractionCreated; 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. > 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)

Loading…
Cancel
Save