Skip to main content
Building Discord Activities Activities are web apps hosted in an iframe that use the Embedded App SDK to communicate with Discord clients. For an introduction to what Activities are, see the Activities platform page. This section covers how Activities are built. You can explore real-world Activities by reading some of our developer case studies, or jump right into building using the resources below.

Developing Activities

Whether you’re developing a multiplayer game, a new social experience, or another creative idea, your Activity will be built as a web app that is run in an iframe in Discord on desktop, mobile, and web. You can get started by following the guide on Building an Activity using the Embedded App SDK or exploring the sample projects The sections below provide an overview of the Embedded App SDK, but technical details about how Activities are run in Discord is covered in How Activities Work.

Embedded App SDK

The Embedded App SDK handles all of the communication between Discord and your app, making it easier to do common tasks like managing connected users, supporting mobile clients, and debugging your Activity. The Embedded App SDK offers different events and commands to handle the communication between Discord and your Activity, which are covered more below.

Commands

The SDK has a set of commands you can call to interact with a Discord client, given you have the appropriate scopes. This is helpful when you want to do authorize and authenticate users, fetch information about your Activity, or update information for your Activity or an authenticated user. Read the Embedded App SDK documentation for a full list of commands, and details about each command.

Events

The SDK also has events you can subscribe (or unsubscribe) to for things happening in a connected client that are relevant to your Activity, given you have the appropriate scopes. This is helpful when you want to do things like handle initial connection and thrown errors, listen to updates about a connected user, and listen to events related to your Activity instance. Read the Embedded App SDK documentation for a full list of events, and details for each event.

Sample Projects

Use the sample projects we’ve built to help you get started building quickly and learn from common development patterns. You can also find a list of community-maintained samples on GitHub, which includes more framework-specific examples.