@getsolara/solara.js
Version:
A lightweight and modular Discord bot framework built on discord.js v14, with truly optional feature packages.
10 lines • 575 B
JavaScript
module.exports = {
name: "$addEmptyField", description: "Adds an empty inline or non-inline field (useful for spacing). Args: [inline(true/false)]", takesBrackets: true,
execute: async (context, args) => {
context.embedData = context.embedData || {}; context.embedData.fields = context.embedData.fields || [];
const inline = args[0]?.toLowerCase() === 'true';
// Use zero-width space for name/value to render field
context.embedData.fields.push({ name: '\u200B', value: '\u200B', inline: inline });
return "";
}
};