UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

16 lines (14 loc) 689 B
"use strict"; const require_lib_types_Enums = require('../types/Enums.cjs'); //#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(require_lib_types_Enums.CommandPreConditions.NotSafeForWork); } //#endregion exports.parseConstructorPreConditionsNsfw = parseConstructorPreConditionsNsfw; //# sourceMappingURL=nsfw.cjs.map