murderfull
DIdiscord.js - Imagine ❄
•Created by murderfull on 4/5/2024 in #djs-questions
intents issue
ok
20 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 4/5/2024 in #djs-questions
intents issue
is it a stable option to choose to upgrade to
20 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 4/5/2024 in #djs-questions
intents issue
13.6.0 is supported right
20 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 4/5/2024 in #djs-questions
intents issue
okay
20 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 4/5/2024 in #djs-questions
intents issue
it's not 13 its 12.3.5
20 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 4/5/2024 in #djs-questions
intents issue
ok
20 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 4/5/2024 in #djs-questions
intents issue
13
20 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
yes
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
so if u can explain in even more simple terms would be greatly appreciated
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
I'm a bit new to this
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
last line
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
THATS THE PROBLEM
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
the bot goes online and no errors
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
everything seems fine
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
command.js file
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
const { readdirSync } = require('fs');
const { join } = require('path');
const ascii = require('ascii-table');
let table = new ascii("Commands");
table.setHeading("Command", "Load status");
module.exports = (client) => {
const commandsPath = join(__dirname, '..', 'commands');
readdirSync(commandsPath).forEach(dir => {
const commands = readdirSync(join(commandsPath, dir)).filter(file => file.endsWith('.js'));
for (let file of commands) {
let pull = require(join(commandsPath, dir, file));
if (pull.structure && pull.structure.name) {
if (dir === 'prefix') {
if (!pull.run) {
table.addRow(file, '❌ -> missing a run method.');
continue;
}
client.collection.prefixcommands.set(pull.structure.name, pull);
} else {
if (!pull.run) {
table.addRow(file, '❌ -> missing a run method.');
continue;
}
client.collection.interactioncommands.set(pull.structure.name, pull);
client.applicationcommandsArray.push(pull.structure);
}
if (pull.structure.aliases && Array.isArray(pull.structure.aliases)) {
pull.structure.aliases.forEach(alias => {
client.collection.aliases.set(alias, pull.structure.name);
});
}
table.addRow(file, '✅');
} else {
table.addRow(file,
❌ -> missing a structure.name or structure property.
);
}
}
});
//console.log(table.toString());
}37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
yes
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
it doesn't give any errors either
37 replies
DIdiscord.js - Imagine ❄
•Created by murderfull on 3/30/2024 in #djs-questions
incorrect file path
so my bot goes online but it doesn't load commands
37 replies