Create and sync Discord slash commands!
npm install slash-create-modify
npx slash-up init
`
After creating a project, you can edit commands to your liking and start it up with yarn start.
You can also deploy a slash-create template to the following services:
| Cloudflare Workers | Vercel | Heroku | Railway |
|:-:|:-:|:-:|:-:|
|  |  |  |  |
Installation
`sh
npm i slash-create
`
Or, using yarn:
`sh
yarn add slash-create
`
$3
In order to use a specific webserver, you will need to install the dependency associated with that server. The following server types require these dependencies:
- AWSLambdaServer: none technically, meant for use with AWS Lambda and Amazon API Gateway, see example
- AzureFunctionServer: none technically, meant for use with Azure Functions, see example
- ExpressServer: express
- FastifyServer: fastify
- GatewayServer: none, see example
- GCFServer: none technically, meant for use with @google-cloud/functions-framework, see example
- VercelServer: none, see example
Examples
- Creating a SlashCreator
- Using Webservers
- Using AWSLambdaServer
- Using AzureFunctionServer
- Using GCFServer
- Using VercelServer`