Clear
Bu içerik henüz dilinizde mevcut değil.
Usage: sern commands clear [options]
Clear and reset commands-data-remote.json and the api
Options:  -y, --yes         Say yes to all prompts  -e, --env [path]  Supply a path to a .env  -h, --help        display help for commandIntroduction
The clear command is a utility that resets all of your commands. It’s useful if you accidentally publish the wrong command, such as publishing a guild command globally.
The clear command works by sending an empty array via the PUT route to the Discord API, for each guild and globally.
To use this command, ensure you have a proper .env file in your root directory:
DISCORD_TOKEN=<YOUR_TOKEN>NODE_ENV=<development|production>Usage
sern commands clearNotes
- The clear command will prompt you to confirm the action. You can bypass this by using the -yflag.
- The clear command will automatically read a .envfile in the working directory. If you need to override this, you can use the-eflag to supply a path to a different.envfile.
