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! 🚀

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more