{"_id":"@elenoragroup/simple-slash","_rev":"5-b1965c0f006a1a8aad56bcde93d3b9f1","name":"@elenoragroup/simple-slash","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.4":{"name":"@elenoragroup/simple-slash","version":"1.0.4","keywords":["discord","command","builder","elenora","elenoragroup"],"author":{"name":"Elenora Group"},"license":"GPL-3.0-or-later","_id":"@elenoragroup/simple-slash@1.0.4","maintainers":[{"name":"firegamer3","email":"gm31334@gmail.com"},{"name":"hiekkii","email":"hiekkii@gmail.com"}],"dist":{"shasum":"5301972aa7075490325416ff0714b76add78bb3b","tarball":"https://registry.npmjs.org/@elenoragroup/simple-slash/-/simple-slash-1.0.4.tgz","fileCount":23,"integrity":"sha512-MMroP2GwGYCZfKg1qAzTQwFpu7ubboyLLiN+ds1OudBAD4uKvQAmm201imxCaRHk2WDk8rkRcPuMqcbgCho5Fw==","signatures":[{"sig":"MEUCIQD+dk/H/4+whadE355R6ryTkzoUlfMFBWK6b+EtD50fsgIgWVClXhyHf3Ll5rSbQq1GML1cUur7iZgZRMj9WJfH9vk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74332},"main":"dist/commonjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","source":"src/index","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/commonjs/index.js"}},"gitHead":"994c7133a432b771b10f6846e642e0ae7553873b","scripts":{"build":"shx rm -rf -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-commonjs.json && shx cp -f package-esm.json ./dist/esm/package.json && shx cp -f package-commonjs.json ./dist/commonjs/package.json","major":"npm version major --force","minor":"npm version minor --force","patch":"npm version patch --force","prepare":"npm run build","version":"git add -A src","postversion":"git push && git push --tags"},"_npmUser":{"name":"hiekkii","email":"hiekkii@gmail.com"},"_npmVersion":"8.19.2","description":"A simple Command Builder for Discord.","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.1.6","@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/simple-slash_1.0.4_1689455188858_0.8989215903698538","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@elenoragroup/simple-slash","version":"1.0.5","keywords":["discord","command","builder","elenora","elenoragroup","simple-slash","simple slash","discord slash","discord slash command"],"author":{"name":"Elenora Group"},"license":"GPL-3.0-or-later","_id":"@elenoragroup/simple-slash@1.0.5","maintainers":[{"name":"firegamer3","email":"gm31334@gmail.com"},{"name":"hiekkii","email":"hiekkii@gmail.com"}],"dist":{"shasum":"3d45626b3586152cf5fbbe7d92badc13040be51a","tarball":"https://registry.npmjs.org/@elenoragroup/simple-slash/-/simple-slash-1.0.5.tgz","fileCount":23,"integrity":"sha512-t1cxjr0oTm4x8xhWl+5b4spvz+1mTrj/AT1wSfHjIsBp2uxwV8F9Z6ITZknvefkVb9TRfUXNKieGXrsgEzV8Yg==","signatures":[{"sig":"MEUCIQD2SH/dxu73MrWUDPQQRrgKK2ilr1/Ds1JTZXpLF+Jg7wIga2f4Kib50VtXnP7KFkuW4vA9fK4Toq4PLviKePCAhUA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":76971},"main":"dist/commonjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","source":"src/index","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/commonjs/index.js"}},"gitHead":"ab8bfa4858ce5f868f35c5822fd897df06bf8409","scripts":{"build":"shx rm -rf -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-commonjs.json && shx cp -f package-esm.json ./dist/esm/package.json && shx cp -f package-commonjs.json ./dist/commonjs/package.json","major":"npm version major --force","minor":"npm version minor --force","patch":"npm version patch --force","prepare":"npm run build","version":"git add -A src","postversion":"git push && git push --tags"},"_npmUser":{"name":"hiekkii","email":"hiekkii@gmail.com"},"_npmVersion":"8.19.2","description":"A simple Command Builder for Discord.","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.1.6","@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/simple-slash_1.0.5_1689456416643_0.7368402185401202","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@elenoragroup/simple-slash","version":"1.0.6","keywords":["discord","command","builder","elenora","elenoragroup","simple-slash","simple slash","discord slash","discord slash command"],"author":{"name":"Elenora Group"},"license":"GPL-3.0-or-later","_id":"@elenoragroup/simple-slash@1.0.6","maintainers":[{"name":"firegamer3","email":"gm31334@gmail.com"},{"name":"hiekkii","email":"hiekkii@gmail.com"}],"dist":{"shasum":"f4acd8147941f55889f5ffa2500c3646c5e17aaa","tarball":"https://registry.npmjs.org/@elenoragroup/simple-slash/-/simple-slash-1.0.6.tgz","fileCount":23,"integrity":"sha512-HGuIaDgZNVAvGj0e2YA8C5IiwUHHj0bVL2utEgifwkKDN8el2ybRSr77rV8XT2zE/ZBpwhxJ3YicDbfnR4tQEA==","signatures":[{"sig":"MEQCIBJ7fcFAZYYHau4lqTBUUdfMueNu3ALxREue1wmzMjCKAiAKz5ZqUne6pgdOzkTtQ9SFkHgwo7+NoQuKhZ8LouRbZA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":75652},"main":"dist/commonjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","source":"src/index","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/commonjs/index.js"}},"gitHead":"3e452685f4f58e4b9fa10bf7e447d983363d34fd","scripts":{"build":"shx rm -rf -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-commonjs.json && shx cp -f package-esm.json ./dist/esm/package.json && shx cp -f package-commonjs.json ./dist/commonjs/package.json","major":"npm version major --force","minor":"npm version minor --force","patch":"npm version patch --force","prepare":"npm run build","version":"git add -A src","postversion":"git push && git push --tags"},"_npmUser":{"name":"hiekkii","email":"hiekkii@gmail.com"},"_npmVersion":"8.19.2","description":"A simple Command Builder for Discord.","directories":{},"_nodeVersion":"18.12.1","_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.1.6","@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/simple-slash_1.0.6_1689463130175_0.997773072929165","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@elenoragroup/simple-slash","version":"2.0.0","keywords":["discord","command","command builder","builder","simple-slash","simple slash","discord slash","discord slash command"],"author":{"name":"Elenora Group"},"license":"GPL-3.0-or-later","_id":"@elenoragroup/simple-slash@2.0.0","maintainers":[{"name":"firegamer3","email":"gm31334@gmail.com"},{"name":"hiekkii","email":"hiekkii@gmail.com"}],"dist":{"shasum":"af72928316808ff00cb82721bf84d604d5ee8895","tarball":"https://registry.npmjs.org/@elenoragroup/simple-slash/-/simple-slash-2.0.0.tgz","fileCount":23,"integrity":"sha512-1OA/rkE72EH5iGzPTydWHTxVdHiI1R0JsTtHc2XzoFS12lJk6Bx6Ut3ZNR2tZ5U4Y4hl3NDsfhy6ZbPzmiJxPA==","signatures":[{"sig":"MEUCIQCO+gFCXKdnMObVsEfy4Yc/gX5mCYEnfgidV+yC8pheTAIgc3xlGJxFUsAHO4RhWl72GKo5rLdw99rjTwWoidDzR+Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":126150},"main":"dist/commonjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","source":"src/index","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/commonjs/index.js"}},"gitHead":"fb8838c75afa98ba0794998defee581c90ab14c4","scripts":{"build":"shx rm -rf -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-commonjs.json && shx cp -f package-esm.json ./dist/esm/package.json && shx cp -f package-commonjs.json ./dist/commonjs/package.json","major":"npm version major --force","minor":"npm version minor --force","patch":"npm version patch --force","prepare":"npm run build","version":"git add -A src","postversion":"git push && git push --tags"},"_npmUser":{"name":"hiekkii","email":"hiekkii@gmail.com"},"_npmVersion":"10.8.2","description":"A simple Command Builder for Discord.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"discord-api-types":"^0.37.93"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.1.6","@types/node":"^20.4.2"},"_npmOperationalInternal":{"tmp":"tmp/simple-slash_2.0.0_1723577301469_0.06333763778853596","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@elenoragroup/simple-slash","version":"2.0.1","keywords":["discord","command","command builder","builder","simple-slash","simple slash","discord slash","discord slash command"],"author":{"name":"Elenora Group"},"license":"GPL-3.0-or-later","_id":"@elenoragroup/simple-slash@2.0.1","maintainers":[{"name":"firegamer3","email":"gm31334@gmail.com"},{"name":"hiekkii","email":"hiekkii@gmail.com"}],"dist":{"shasum":"5f701c256ead55d36d522990840ed9bcdb53d29d","tarball":"https://registry.npmjs.org/@elenoragroup/simple-slash/-/simple-slash-2.0.1.tgz","fileCount":23,"integrity":"sha512-r2sdPIiY3zKYZUoymmuyYM+2tBCtLCFCUoVR3R6Zq0nDq9kLANHxMKgLzHU0mpTGb098uNv1vWUfCqDkeNCCvg==","signatures":[{"sig":"MEYCIQDOTb6usKBJI/jQNK6b3tSXIcohbkytYn1cAeKpbNB7WgIhAPkjqkSLsVvwY61VSi7UmSocn6B0sON20/0dWqf8Yoag","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":126198},"main":"dist/commonjs/index.js","type":"module","types":"dist/esm/index.d.ts","module":"dist/esm/index.js","source":"src/index","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/commonjs/index.js"}},"gitHead":"672808ac40baf79f17039cb89f313ec6f5bc3183","scripts":{"build":"shx rm -rf -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-commonjs.json && shx cp -f package-esm.json ./dist/esm/package.json && shx cp -f package-commonjs.json ./dist/commonjs/package.json","major":"npm version major --force","minor":"npm version minor --force","patch":"npm version patch --force","prepare":"npm run build","version":"git add -A src","postversion":"git push && git push --tags"},"_npmUser":{"name":"hiekkii","email":"hiekkii@gmail.com"},"_npmVersion":"10.8.2","description":"A simple Command Builder for Discord.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"discord-api-types":"^0.37.93"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.5.4","@types/node":"^22.2.0"},"_npmOperationalInternal":{"tmp":"tmp/simple-slash_2.0.1_1723578710835_0.2886678045551414","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@elenoragroup/simple-slash","version":"2.0.2","description":"A simple Command Builder for Discord.","main":"dist/commonjs/index.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","type":"module","source":"src/index","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/commonjs/index.js"}},"scripts":{"build":"shx rm -rf -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-commonjs.json && shx cp -f package-esm.json ./dist/esm/package.json && shx cp -f package-commonjs.json ./dist/commonjs/package.json","prepare":"npm run build","version":"git add -A src","postversion":"git push && git push --tags","patch":"npm version patch --force","minor":"npm version minor --force","major":"npm version major --force"},"keywords":["discord","command","command builder","builder","simple-slash","simple slash","discord slash","discord slash command"],"repository":{"type":"git","url":"git+https://github.com/Elenora-Group/SimpleSlash.git"},"author":{"name":"Elenora Group"},"license":"GPL-3.0-or-later","devDependencies":{"@types/node":"^22.2.0","shx":"^0.3.4","typescript":"^5.5.4"},"dependencies":{"discord-api-types":"^0.37.93"},"_id":"@elenoragroup/simple-slash@2.0.2","gitHead":"8ed0cefaf9735c7c430c8ef8338d44e1213193f0","bugs":{"url":"https://github.com/Elenora-Group/SimpleSlash/issues"},"homepage":"https://github.com/Elenora-Group/SimpleSlash#readme","_nodeVersion":"20.11.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-IZoW4PoSCHVFNoj22lGeUtpoln+96X9MeoxrXv/6LZnOwu9QFLlaWjh05QlrHyrfEDNpCfIx1lRlx2ULB/eqIg==","shasum":"d1b24015ace8d1229a3a602060d40c51125d872c","tarball":"https://registry.npmjs.org/@elenoragroup/simple-slash/-/simple-slash-2.0.2.tgz","fileCount":23,"unpackedSize":126314,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA8MXbMPEw4ZdMIIXINVN/3Q6lvtN1DCq5ueUNwnWPlUAiBoOiPOeHdjCPZaP9hZ/7tAY1QAqgrpJfUc+vUmvcST3w=="}]},"_npmUser":{"name":"hiekkii","email":"hiekkii@gmail.com"},"directories":{},"maintainers":[{"name":"firegamer3","email":"gm31334@gmail.com"},{"name":"hiekkii","email":"hiekkii@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-slash_2.0.2_1723741973588_0.8584585178506445"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-15T21:06:28.756Z","modified":"2024-08-15T17:12:53.970Z","1.0.4":"2023-07-15T21:06:29.041Z","1.0.5":"2023-07-15T21:26:56.826Z","1.0.6":"2023-07-15T23:18:50.407Z","2.0.0":"2024-08-13T19:28:21.690Z","2.0.1":"2024-08-13T19:51:50.999Z","2.0.2":"2024-08-15T17:12:53.769Z"},"author":{"name":"Elenora Group"},"license":"GPL-3.0-or-later","keywords":["discord","command","command builder","builder","simple-slash","simple slash","discord slash","discord slash command"],"description":"A simple Command Builder for Discord.","maintainers":[{"name":"firegamer3","email":"gm31334@gmail.com"},{"name":"hiekkii","email":"hiekkii@gmail.com"}],"readme":"# About\n\n`simple-slash` is a utility package for building the Discord Slash Commands JSON simply.\n\n# Installation\n\n**This was built with Node.js v20.11.0**\n\n```cmd\nnpm install @elenoragroup/simple-slash\n```\n\n# Links\n\n-   [Support](https://discord.gg/elenora)\n-   [Documentation](https://github.com/Elenora-Group/SimpleSlash#readme)\n\n# Examples\n\n## Base Command\n\n```ts\n// Import SimpleSlash and Constants\nimport SimpleSlash, { Constants } from '@elenoragroup/simple-slash';\n\n// Create the definition for the command and set a Command Type\nconst definition = new SimpleSlash('ping', 'pong').setCommandType(Constants.ApplicationCommandType.ChatInput);\n```\n\n## Arguments\n\n### addStringOption\n\n**Parameters**\n\n```ts\naddStringOption({\n    name: string;\n    description: string;\n    required?: boolean;\n    autocomplete?: boolean;\n    choices?: Array<string | {\n        name: string;\n        value: string;\n    }>;\n    min_length?: number;\n    max_length?: number;\n})\n```\n\n**Base addStringOption**\n\n```ts\nimport SimpleSlash, { Constants } from '@elenoragroup/simple-slash';\n\n// Create the definition for the command\nconst definition = new SimpleSlash('stats', \"Look up someone's stats\")\n    .setCommandType(Constants.ApplicationCommandType.ChatInput)\n    .addStringOption({ name: 'name', description: 'The name of the person to look up' });\n```\n\n**addStringOption with Choices** - Choices are automatically lowercased and all spaces replaced with `_` for the value, unless an object is passed in.\n\n```ts\nimport SimpleSlash, { Constants } from '@elenoragroup/simple-slash';\n\n// Create the definition for the command\nconst definition = new SimpleSlash('stats', \"Look up someone's stats\")\n    .setCommandType(Constants.ApplicationCommandType.ChatInput)\n    .addStringOption({\n        name: 'name',\n        description: \"Who's stats would you like to see?\",\n        required: true,\n        choices: ['Timmy', 'Peter', 'Jimmy John', { name: 'SUSIE', value: 'susie' }],\n    });\n```\n\n### addIntegerOption | addNumberOption\n\n**Parameters**\n\n```ts\naddIntegerOption({\n    name: string;\n    description: string;\n    required?: boolean;\n    autocomplete?: boolean;\n    choices?: Array<{\n        name: string;\n        value: number;\n    }>;\n    min_value?: number;\n    max_value?: number;\n})\n```\n\n**Base addIntegerOption | addNumberOption**\n\n```ts\nimport SimpleSlash, { Constants } from '@elenoragroup/simple-slash';\n\n// Create the definition for the command\nconst definition = new SimpleSlash('stats', \"Look up someone's stats\")\n    .setCommandType(Constants.ApplicationCommandType.ChatInput)\n    .addIntegerOption({ name: 'amount', description: 'How many puppies would you like to see?' });\n```\n\n### addChannelOption\n\n**Parameters**\n\n```ts\naddChannelOption(\n    name: string,\n    description: string,\n    required?: boolean,\n    types?: Array<Exclude<Constants.ChannelType, Constants.ChannelType.DM | Constants.ChannelType.GroupDM>>\n)\n```\n\n**Base addChannelOption**\n\n```ts\nimport SimpleSlash, { Constants } from '@elenoragroup/simple-slash';\n\n// Create the definition for the command\nconst definition = new SimpleSlash('stats', \"Look up someone's stats\")\n    .setCommandType(Constants.ApplicationCommandType.ChatInput)\n    .addChannelOption('channel_name', 'What channel would you like to set?', true, [Constants.ChannelType.GuildText]);\n```\n\n### addBooleanOption | addUserOption | addRoleOption | addMentionableOption | addAttachmentOption\n\n**Parameters**\n\n```ts\naddUserOption(\n    name: string,\n    description: string,\n    required = false\n)\n```\n\n**Base addBooleanOption | addUserOption | addRoleOption | addMentionableOption | addAttachmentOption**\n\n```ts\nimport SimpleSlash, { Constants } from '@elenoragroup/simple-slash';\n\n// Create the definition for the command\nconst definition = new SimpleSlash('stats', \"Look up someone's stats\")\n    .setCommandType(Constants.ApplicationCommandType.ChatInput)\n    .addUserOption('user', \"Who's profile would you like to see?\");\n```\n\n### addSubcommand | addSubcommandGroup\n\n**Parameters**\n\n```ts\naddSubcommand(\n    name: string,\n    description: string,\n    cb?: (builder: SimpleSlash) => void\n)\n```\n\n**Base addSubcommand | addSubcommandGroup**\n\n```ts\nimport SimpleSlash, { Constants } from '@elenoragroup/simple-slash';\n\n// Create the definition for the command\nconst definition = new SimpleSlash('stats', \"Look up someone's stats\")\n    .setCommandType(Constants.ApplicationCommandType.ChatInput)\n    .addSubcommand('lookup', \"Look up someone's stats\", (sub) => {\n        sub.addStringOption({ name: 'name', description: 'The name of the person to look up', required: true });\n    });\n```\n","readmeFilename":"README.md","homepage":"https://github.com/Elenora-Group/SimpleSlash#readme","repository":{"type":"git","url":"git+https://github.com/Elenora-Group/SimpleSlash.git"},"bugs":{"url":"https://github.com/Elenora-Group/SimpleSlash/issues"}}