Merge pull request #177 from Mateo-tem/main

fix: modal example and readme wording
This commit is contained in:
Free 公園 2024-04-07 18:32:10 -06:00 committed by GitHub
commit 4221d5995b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 reasons 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
* });