- create app
- general info -> copy
application ID
(client ID
) andpublic key
- set webhook (inbound) url
<base url>/interactions
- bot -> enable bot -> copy token
- enable developer settings on discord client (
settings > advanced > toggle dev mode
) - create test server and copy ID
- create
verify
channel and copy its ID - create
.env
file in project root
.env
PORT=8008
# enable developer settings on discord and right click to get IDs
# right click server name (top left)
DISCORD_GUILD_ID=''
# right click channel name
DISCORD_VERIFY_CHANNEL_ID=''
# from discord dev app pages
# general info
DISCORD_BOT_CLIENT_ID=''
DISCORD_BOT_CLIENT_PUBLIC_KEY=''
# bot
DISCORD_BOT_TOKEN=''
npm install
npm start
- click link in logs to invite to test server
- run
/nfd start
and/nfd verify
- tinker and finalize
register-commands.ts
can be run separately (only needs to be run once unless the command defs change, think of it like a migration script for the state of the slash command). it can be done without libs if you want to put the request body together manually docs