This repo is all of the code and resources used in the Building a Discord App workshop. The app is a simple magic 8-style app:
⚙️ Jimp is used to layer text on top of images.
Below is a basic overview of the project structure:
├── examples -> additional code examples
│ ├── app.js -> finished app.js file
├── utils
│ ├── fortune.js -> code to create fortunes
│ ├── images.js -> logic to generate images
│ ├── register.js -> register commands wih Discord
│ ├── requests.js -> code specific to Discord requests
├── app.js -> main entrypoint for the app
├── commands.js -> command payloads to register
├── package.json
├── README.md
├── .env.sample -> sample .env file
└── .gitignore
To follow along with the workshop:
- Login to Glitch (or if you don't have an account, you can sign up for one).
- 🎏 Remix the project
This repo also contains a guided tutorial that follows the steps of the workshop so that you have something to reference during and after.
- Step 0 - Project setup
- Step 1 - Create app
- Step 2 - Setup credentials and interactivity
- Step 3 - Register and handle slash command
- Step 4 - Add message components
- Read the documentation for in-depth information about API features.
- Browse the
examples/
folder in this project for smaller, feature-specific code examples - Join the Discord Developers server to ask questions about the API, attend events hosted by the Discord API team, and interact with other devs.
- Check out community resources for language-specific tools maintained by community members.