@getsolara/solara.js
Version:
A lightweight and modular Discord bot framework built on discord.js v14, with truly optional feature packages.
9 lines • 342 B
JavaScript
module.exports = {
name: "$roleCount",
description: "Returns the total number of roles in the current guild.",
takesBrackets: false,
execute: async (context, args) => {
if (!context.guild) return "[Error: $roleCount requires a guild context]";
return context.guild.roles.cache.size.toString();
}
};