UNPKG

night-api

Version:

Ce paquet Npm fourni une interface pour intéragir avec [Night-API](https://night-api.com)

21 lines 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Messages = void 0; const { reg } = require('./NightAPIErrors'); exports.Messages = { TOKEN_INVALID: 'An invalid API key was provided.', TOKEN_MISSING: 'The API key is missing.', IS_MISSING: (miss) => `${miss} is missing`, ID_MISSING: `The joke ID is missing`, TYPE_MISSING: `The joke Type is missing`, INVALID_TYPE: `Invalid jokes type provided`, ID_IS_NAN: `The ID must be a Number`, MUST_BE_TYPE: (option, type) => `The ${option} option must be an ${type}`, MUST_BE_OBJECT: `"options" must be an object`, LINK_NOT_FOUND: link => `The link could not be found: ${link}`, IP_IS_REQUIRED: `The IP is required for Games servers`, IP_IS_NOT_VALID: `The IP must be a valid IP address for Games servers. The parameter must be a string`, }; for (let [name, message] of Object.entries(exports.Messages)) reg(name, message); //# sourceMappingURL=Messages.js.map