@getsolara/solara.js
Version:
A lightweight and modular Discord bot framework built on discord.js v14, with truly optional feature packages.
7 lines • 373 B
JavaScript
module.exports = {
name: "$functionExists", description: "Checks if a Solara function exists. Args: functionName (with $)", takesBrackets: true,
execute: async (context, args) => {
if (!args[0]) return "[Error: Requires function name]"; const funcName = args[0].toLowerCase();
return context.client.functions.has(funcName).toString();
}
};