Check if command is a slash command

categories.forEach((category) => {
const dir = commands.filter((c) => c.category === category);
const capitalise = category.slice(0, 1).toUpperCase() + category.slice(1);

embed.addFields({ name: `${capitalise} [${dir.size}]`, value: dir.map((c) => `\`${c.name}\``).join(', ') });
});
categories.forEach((category) => {
const dir = commands.filter((c) => c.category === category);
const capitalise = category.slice(0, 1).toUpperCase() + category.slice(1);

embed.addFields({ name: `${capitalise} [${dir.size}]`, value: dir.map((c) => `\`${c.name}\``).join(', ') });
});
Currently making a help command, below is code I use to add fields, how do I add a slash in front of the c.name if the command is a slash command?
6 Replies
ender
ender8mo ago
man i love the support on this server its always so quick, coming from discord.py its ten times better i remember your avatar from somewhere..
Ben
Ben8mo ago
Our mutuals show only this server and the djs one
ender
ender8mo ago
do you remember "Ender2K89"? that was my old account, i swear i remember you
Ben
Ben8mo ago
It doesn't ring a bell
ender
ender8mo ago
welp