Some of the handlers will be considered loaded when ignored.

This commit is contained in:
Kwafuri
2024-02-04 07:29:24 +00:00
parent 9273023d3a
commit 690d6ed86a
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ table.setHeading('Buttons', 'Status').setBorder('|', '-', '+', '+');
module.exports.name = 'buttons';
module.exports = (client) => {
if (!fs.existsSync('./buttons/')) return;
fs.readdirSync('./buttons/').filter((file) => file.endsWith('.js')).forEach((file) => {
const button = require(`../buttons/${file}`);
client.buttons.set(button.id, button);