UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

15 lines (13 loc) 614 B
import { CommandPreConditions } from "../types/Enums.mjs"; //#region src/lib/precondition-resolvers/nsfw.ts /** * Appends the `NSFW` precondition if {@link SubcommandMappingMethod.nsfw} is set to true. * @param nsfw Whether this command is NSFW or not. * @param preconditionContainerArray The precondition container array to append the precondition to. */ function parseConstructorPreConditionsNsfw(nsfw, preconditionContainerArray) { if (nsfw) preconditionContainerArray.append(CommandPreConditions.NotSafeForWork); } //#endregion export { parseConstructorPreConditionsNsfw }; //# sourceMappingURL=nsfw.mjs.map