- src/settings.json
{
"token": "NTIzNDU2Nzg5MDEyMzQ1Njc4.XYZ123.aBcDeFgHiJkLmNoPqRsTuVwXyZ012345",
"clientID": "817614688027410452",
"host": "0.0.0.0",
"port": 25565,
"version": "1.20.4",
"username": "Kaveah",
"auth": "microsoft",
"prefix": ">",
"silent": false,
"guarding": false,
"showCoordinates": true,
"logging": true,
"master": ["OBNinjaa"],
"messages": "1246163933853778030/FGPCU2zvpatCGW2ekix2_ffmOUOmASExmLMOo0ForrTj9YCLKn4zBnTl9srBG8SdXsRx",
"events": "1246164053047377962/Z8s7eNai3W3jpRzZbl3aky5Q_iSbb7a74zgwcLUnnVkOLA_l1-ec2cvv8Gm000sPJnlb"
}
To register slash commands in your server, you will need to grant the necessary permissions to your bot.
- Go to the Discord Developer Portal and select your application.
- Go to the "OAuth2" tab.
- In the "Scopes" section, select the "bot" scope.
- In the "Bot Permissions" section, select the "applications.commands" permission.
- Copy the generated invite URL and use it to invite your bot to the server where you want to register the slash commands.
- Run npm run dev to register commands to your discord server