Skip to content

A Discordia extension to provide Message Components support such as Buttons.

License

Notifications You must be signed in to change notification settings

Bilal2453/discordia-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discordia-Components

Version License

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.

Documentation

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.

Installation

  1. Install lit if not already installed, see Luvit installation guide and Discordia installation Tutorial.
  2. Open a terminal (PowerShell or CMD on Windows) and preferably cd into your bot's directory.
  3. 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 just lit) Once that is done, you should see Lit print the message done: 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`

Examples

See the examples directory.

License

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!

About

A Discordia extension to provide Message Components support such as Buttons.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages