@getsolara/solara.js
Version:
A lightweight and modular Discord bot framework built on discord.js v14, with truly optional feature packages.
7 lines • 391 B
JavaScript
module.exports = {
name: "$font", description: "Sets the font style (CSS font string). Args: fontString", takesBrackets: true,
execute: async (context, args) => {
if (!context.canvasContext) return "[Error: Canvas not created]"; if (!args[0]) return "[Error: Requires font string (e.g., '30px Arial')]";
context.canvasContext.font = args[0]; return "";
}
};