Xanthos Prime
DIAdiscord.js - Imagine an app
•Created by Xanthos Prime on 4/16/2024 in #djs-questions
ApplicationCommand & PermissionFlagsBits
I recently refactored my static Command files to store the SlashCommands, and underlying SubCommands, SubCommandGroups and CommandOptions, in my DB (I consider this Metadata) and expanded on the different fields available. (Like NSFW, DmPermission, etc)
For the .setDefaultMemberPermissions() method, what would be the best way to store this?
Was considering in string form, e.g. "2 | 4" with the numbers representing KICK_MEMBERS and BAN_MEMBERS respectfully.
7 replies