if (subcommands.length > 0) { const subList = subcommands .map((sub) => { const mention = discordCmd ? `` : `\`/${data.name} ${sub.name}\``; let args = ""; if (sub.options.length > 0) { args = sub.options .map((o) => (o.required ? `<${o.name}>` : `[${o.name}]`)) .join(" "); } return `${mention} \`${args}\`\n╰ ${sub.description}`; }) .join("\n\n"); embed.addFields({ name: "🗂️ Subcommands & Usage", value: subList }); }