Abiru Ekanayakaツ
Abiru Ekanayakaツ
DIAdiscord.js - Imagine an app
Created by Abiru Ekanayakaツ on 11/26/2023 in #djs-questions
Why isn't the autocomplete working the autocomplete function isn't even getting called.
i even wrote two sperate commands and put it in the commands/slash folder and they just worked
31 replies
DIAdiscord.js - Imagine an app
Created by Abiru Ekanayakaツ on 11/26/2023 in #djs-questions
Why isn't the autocomplete working the autocomplete function isn't even getting called.
to be honest i'm not the one who wrote the code and the person who wrote the code made it so hard to find a single piece of code. there's like 100 files of stuff in this
31 replies
DIAdiscord.js - Imagine an app
Created by Abiru Ekanayakaツ on 11/26/2023 in #djs-questions
Why isn't the autocomplete working the autocomplete function isn't even getting called.
every command work exept the autocomplete
31 replies
DIAdiscord.js - Imagine an app
Created by Abiru Ekanayakaツ on 11/26/2023 in #djs-questions
Why isn't the autocomplete working the autocomplete function isn't even getting called.
No description
31 replies
DIAdiscord.js - Imagine an app
Created by Abiru Ekanayakaツ on 11/26/2023 in #djs-questions
Why isn't the autocomplete working the autocomplete function isn't even getting called.
but it works exept the autocomplete
31 replies
DIAdiscord.js - Imagine an app
Created by Abiru Ekanayakaツ on 11/26/2023 in #djs-questions
Why isn't the autocomplete working the autocomplete function isn't even getting called.
no
31 replies
DIAdiscord.js - Imagine an app
Created by Abiru Ekanayakaツ on 11/26/2023 in #djs-questions
Why isn't the autocomplete working the autocomplete function isn't even getting called.
this loads the commands
const { readdirSync } = require("node:fs");
const path = require("node:path");

module.exports = (client) => {
const data = [];

readdirSync("./src/commands/Slash/").forEach((dir) => {
const commands = readdirSync(`./src/commands/Slash/${dir}/`).filter((file) => file.endsWith(".js"));

for (const file of commands) {
const pull = require(path.join(__dirname, `../commands/Slash/${dir}/${file}`));

if (pull.name) {
client.slashCommands.set(pull.name, pull);
data.push(pull);
} else {
continue;
}
}
});

client.on("ready", async () => {
await client.application.commands.set(data);

console.log(`[INFO] ${client.slashCommands.size} Slash Commands Loaded!`);
});
};
const { readdirSync } = require("node:fs");
const path = require("node:path");

module.exports = (client) => {
const data = [];

readdirSync("./src/commands/Slash/").forEach((dir) => {
const commands = readdirSync(`./src/commands/Slash/${dir}/`).filter((file) => file.endsWith(".js"));

for (const file of commands) {
const pull = require(path.join(__dirname, `../commands/Slash/${dir}/${file}`));

if (pull.name) {
client.slashCommands.set(pull.name, pull);
data.push(pull);
} else {
continue;
}
}
});

client.on("ready", async () => {
await client.application.commands.set(data);

console.log(`[INFO] ${client.slashCommands.size} Slash Commands Loaded!`);
});
};
31 replies
DIAdiscord.js - Imagine an app
Created by Abiru Ekanayakaツ on 11/26/2023 in #djs-questions
Why isn't the autocomplete working the autocomplete function isn't even getting called.
isn't the autocomplete: async (client, interaction) supposed to do that?
31 replies
DIAdiscord.js - Imagine an app
Created by Abiru Ekanayakaツ on 11/26/2023 in #djs-questions
Why isn't the autocomplete working the autocomplete function isn't even getting called.
No description
31 replies
DIAdiscord.js - Imagine an app
Created by Tenkza on 11/25/2023 in #djs-questions
Why Does my Bot not react to Prefixes?
Might be intent issue
18 replies