- Place
const { loadButtons } = require("../Structures/Handlers/buttonHandler");
inside of your index.js. - Place
client.buttons = new Collection();
and thisloadButtons(client);
inside of your index.js. - Place
buttonHandler.js
inside of your handlers folder. - Place
buttonListener.js
inside of your events folder. - Create a new folder inside of your bots main folder called
Buttons
. - Change the ID inside of the
buttonListener.js
file to your ID.
- Don't forget to change file paths to your needs.