discordia-components is a Discordia 2.x extension that adds support for Message Components, such as buttons and select menus. This also offers a somewhat high-level interface for dealing with components, with features such as automatic rows, and client-side requirement checking.
See the wiki for the API documentation. The discordia-interactions wiki is also very relevant, you should check it out.
If you still can't figure it out, feel free to ask me on Discord. Join the Discordia Server and ask your question in the extensions-help channel, make sure to post any errors you are getting if any, otherwise explain what you want to achieve and why it is not working, and most importantly the code you've tried.
- Install
lit
if not already installed, see Luvit installation guide and Discordia installation Tutorial. - Open a terminal (PowerShell or CMD on Windows) and preferably
cd
into your bot's directory. - In the terminal, execute
lit install Bilal2453/discordia-components
. (Note: if you have not set up your PATH, you might have to do./lit
instead of justlit
) Once that is done, you should see Lit print the messagedone: success
, indicating you are now ready to require the extension from your Discordia project.
You may also install the latest main branch by replacing the command in step 3 with:
git clone https://github.com/Bilal2453/discordia-components.git ./deps/discordia-components && git clone https://github.com/Bilal2453/discordia-interactions.git ./deps/discordia-interactions`
See the examples directory.
- Ping Pong
- Music Controls
- TicTacToe (To Be Done)
This project is licensed under the Apache License 2.0, see [LICENSE] for more information. Make sure to include the original copyright notice when copying!