This is a discord.js (v13.7) example for the newly released Discord Modals
- Clone the repository (
git clone https://github.com/DanPlayz0/DJS-Modals.git --branch djs) - Install the dependencies (
npm install) - Fill in the
config.jsfile with your bot token and prefix. - Run the bot (
npm start)
- Start the bot (
npm start) - Open your discord client
- Type
!previewto get a button that you can press to open the modal. - Use the modal to do something.