DEV Community

WavePlay Staff for WavePlay

Posted on

1 1

Getting credentials for your Discord Activity

Discord Activities are awesome! They run inside Discord and can do all sorts of cool things like games, quizzes, and more. But to get started, you need to authenticate your activity with Discord.

This guide will show you how to get your credentials and start building your activity.

Create a Discord application

To get started, you need to create a new Discord application. This will give you access to the Discord API and allow you to authenticate your activity.

  1. Go to the Discord Developer Portal.
  2. Click on "New Application" and give your application a name.
  3. Click on "Create" to create your new application.

Image

Click on "OAuth2" in the sidebar

Once you've created your application, click on "OAuth2" in the sidebar. This has all the stuff you need to authenticate your activity.

Here, you can find your "Client ID" and "Client Secret". You'll need these to authenticate your activity with Discord. You may need to click on "Reset Secret" to generate a new secret.

Image

Go ahead and copy them to your project!

That's it!

That's all you need to get your credentials for your Discord Activity. Now you can start building your activity and authenticate it with Discord. Have fun! 🎉


Don't have a project yet?

If you don't have a project yet or want to start fresh, you can use the create-robo tool to create a new Discord Activity project. It's super easy and comes with everything you need to get started. Check it out!



npx create-robo my-activity --kit app


Enter fullscreen mode Exit fullscreen mode

We also have a tutorial on how to build a Discord Activity in seconds.

📖 Tutorial: Creating a Discord Activity in seconds

Still have questions? Join our Discord server and ask away. We're here to help you build amazing activities with Robo.js! 🚀

SurveyJS custom survey software

Simplify data collection in your JS app with a fully integrated form management platform. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more. Integrates with any backend system, giving you full control over your data and no user limits.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay