/discord-app-workshop

Primary LanguageJavaScriptMIT LicenseMIT

Building a Discord App workshop

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:

Demo of app

⚙️ Jimp is used to layer text on top of images.

Project overview

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

Remix on Glitch

To follow along with the workshop:

  1. Login to Glitch (or if you don't have an account, you can sign up for one).
  2. 🎏 Remix the project

Guided tutorial

This repo also contains a guided tutorial that follows the steps of the workshop so that you have something to reference during and after.

Table of contents

Additional Resources

  • 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.