This Project is Discord Slash Command Demo
Reference. Discord-api-docs PR
This Project hook raw
Event. so It will be operated successfully If user enter slash command.
Base in Discord.js V12.
Grant Permission applications.commands
https://discord.com/oauth2/authorize?client_id={insert_client_id_here}&scope=applications.commands
If you don't grant permission,
It will throw DiscordAPIError (Missing Access) when you execute CommandRegister Function.
Using Git CLI
git clone https://github.com/MoartMedia/Discord-Integration-demo.git
cd ./Discord-Integration-demoOr Download This Repository
Download For Linux Using apt
apt-get update apt-get install nodejs -y
npm install
Before You start Application, Please Edit ./config.json.
node .