fix: modal example and readme wording

This commit is contained in:
Mateo 2024-04-07 19:01:34 -05:00
parent f91968caef
commit 1020c48798
2 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,7 @@
Seyfert is the ultimate Discord framework! We make easy to interact with the Discord API, big cache control, scalable code and a pretty dev experience.
## Why I should use it?
There is a lot of reasons to use Seyfert, but we cannot put them all in here so there is a few of them!
There are many to use Seyfert, but we cannot put them all in here so there is a few of them!
- **RAM Saver**
- **Latest features**

View File

@ -17,7 +17,10 @@ import type { ModalBuilderComponents, ModalSubmitCallback } from './types';
* @example
* const modal = new Modal();
* modal.setTitle("Sample Modal");
* modal.addComponents(new TextInput().setLabel("Enter text"));
* modal.addComponents(
* new ActionRow<TextInput>()
* .addComponents(new TextInput().setLabel("Enter text"))
* ));
* modal.run((interaction) => {
* // Handle modal submission
* });