Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harshil1712/register-slash-command
Add Interactions Endpoint URL for your Discord slash command via CLI
https://github.com/harshil1712/register-slash-command
discord discord-bot hacktoberfest
Last synced: 4 days ago
JSON representation
Add Interactions Endpoint URL for your Discord slash command via CLI
- Host: GitHub
- URL: https://github.com/harshil1712/register-slash-command
- Owner: harshil1712
- License: mit
- Created: 2021-05-17T19:38:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-27T18:59:42.000Z (over 3 years ago)
- Last Synced: 2024-10-31T14:52:55.644Z (11 days ago)
- Topics: discord, discord-bot, hacktoberfest
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Register Slash Command
Register your Discord [slash command](https://discord.com/developers/docs/interactions/slash-commands) with this interactive CLI.
## Getting Started 🚀
### Prerequisites
- This CLI tool is built with Node.js. [Install Node.js](https://nodejs.org) to get started
- A [Discord application](https://discord.com/developers/applications) with the **applications.command** scope.### Execute
Run the following command:
```sh
npx register-slash-command
```Or install the package globally:
```sh
npm install -g register-slash-command// or
yarn global add register-slash-command
```You will be prompted to:
1. Select the scope for the slash command
- Guild: The command will only be available within the guild that you specified
- Global: The command will be available on all your app's guilds2. Enter a name for the slash command
- Make sure it starts with a lower-case letter and the name doesn't contain any special characters3. Enter a description for the command
4. Enter the bot token
- You can get your bot toke from the Discord Developer Portal
5. Enter the Application ID
- You can get the Application ID from the Discord Developer Portal
6. Enter the Guild ID
- If you're registering the slash command for a Guild, you will be prompted to enter the Guild ID## To Do 💡
- [ ] Add functionality that allows user to select an option for Authentication: Bot Token and Client Credentials
- [ ] Add functionality to allow user to add sub-groups and sub-commands
- [ ] Add the functionality to delete and update slash commands## Contribute ✨
Refer to [CONTRIBUTING.md](./CONTRIBUTING.md) to learn more.