Dev Mode
Global slash commands take up to an hour to register, so it’s recommended to use guild commands during development.
JellyCommands
has a dev
mode to make this easy.
Setup
To use dev
mode, you must tell Jelly
which guilds
to use.
For additional options, see dev options.
Global Dev Mode
Adding dev: true
to every command (and remembering to remove it) can be tedious. global dev mode makes this easier.
Enable global dev mode by setting global
to true.
Automatic Global Dev Mode
An environment variable can be used to automatically enable dev mode locally with the popular dotenv
package.
In your project’s root directory, create a file called .env
containing the text NODE_ENV="development"
. Then, add the following to your config:
Now, dev
mode will be enabled when working locally, and disabled when running in production.
Dev Mode for Commands
You can also enable dev
mode for individual commands.