- Place
const { loadModals } = require("../Structures/Handlers/modalHandler");
inside of your index.js. - Place
client.modals = new Collection();
and thisloadModals(client);
inside of your index.js. - Place
modalHandler.js
inside of your handlers folder. - Place
modalListener.js
inside of your events folder. - Create a new folder inside of your bots main folder called
Modals
. - Change the ID inside of the
modalListener.js
file to your ID.
- Don't forget to change file paths to your needs.