@reaxion/core
Version:
Core utilities for Reaxion bots including modal and paginator systems.
45 lines (29 loc) • 1.37 kB
Markdown
# Reaxion Project
Reaxion is a modular application designed to handle interactive modals using Discord's API. This project provides a flexible and chainable modal builder that allows developers to create and manage modals with ease.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
## Installation
To get started with Reaxion, clone the repository and install the necessary dependencies:
```bash
git clone https://github.com/yourusername/reaxion.git
cd reaxion
npm install
```
Make sure you have Node.js installed on your machine. You can download it from [nodejs.org](https://nodejs.org/).
## Usage
After installing the dependencies, you can start using the ModalHandler in your Discord bot. Here’s a basic example of how to use it:
```javascript
import { modal } from './src/core/index.js';
// Example of showing a modal
async function showModal(interaction) {
await modal.feedback('Feedback Form').show(interaction);
}
```
For more detailed usage instructions, refer to the documentation in the `src/core/modal.js` file.
## Contributing
Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.
## License
This project is licensed under the MIT License. See the LICENSE file for more details.