© 2026 Hedgehog Software, LLC
const fields = commands.map((v) => { const prefix = v.supportsMessageCommands() == v.supportsChatInputCommands() ? "" : (v.supportsMessageCommands() ? "!" : "/") const preconditionTag = v.preconditions.entries.includes("OwnerOnly" as any) ? `(OWNER ONLY)` : "" // this always returns false (i tested it) return {name: `${prefix}${v.name} ${preconditionTag}`, value: `${v.description}`} })
Join the Discord to ask follow-up questions and connect with the community
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,286 Members