UNPKG

@getsolara/solara.js

Version:

A lightweight and modular Discord bot framework built on discord.js v14, with truly optional feature packages.

12 lines 652 B
module.exports = { name: "$guildFeatures", description: "Returns a semicolon-separated list of features for the current guild or specified guild ID.", takesBrackets: true, execute: async (context, args) => { const guildId = args[0]?.trim(); let targetGuild = null; if (guildId) { try { targetGuild = await context.client.guilds.fetch(guildId); } catch (e) { return `[Error: Could not find guild ${guildId}]`; } } else { targetGuild = context.guild; } if (targetGuild) return targetGuild.features.join(';'); return "[Error: $guildFeatures - Could not determine guild context]"; } };