Skip to content

Linking your Discord Account

Alexandre PADOVAN edited this page Jun 1, 2023 · 1 revision

How to enable Discord Rich Presence with CWA when using it with your Switch

Create your application on the discord dev panel.

If you don't have an application yet, go to the Discord Developer Portal and create a new application.

image

Open CWA configuration file (config.json)

This will require you to run the application at least once after setup/downloading. The configuration file should be located in C:\Users\<<USERNAME>>\AppData\Roaming\camera-viewer-app regardless of the installation path.

If you never configured the application before, the content of the file should look like this:

{
	"discord": {
		"enabled": false,
		"clientId": null
	}
}

Go to your Discord Application page and copy the Application ID.

image

Change the clientId value to your application id surrounding it with double quotes, and change the enabled value to true.

Example:

{
	"discord": {
		"enabled": true,
		"clientId": "1112782015809458196"
	}
}

Save & Close the file.

Setting up games

Now, when running CWA, you should see this notification being displayed:

image

Click the setting icon

image

On this screen you can add, remove and configure the time tracking for each game you register:

image

  • The Game input: It's the name of the game that will be shown in the details on your profile.
  • The Key input: It's the name of the image asset to display in the rich presence (we'll talk about that after)
  • The T button: Toggle the time tracking for the game. When enabled, it will show the time spent on the game in the rich presence.
  • The R button: Remove the game from CWA.

About the asset Key

On your Discord Application page, under Rich Presence > Art Assets, you can add images that you can display in the rich presence.

image

The name of the asset you choose will be the value to put in the Key field when adding a game. If you want to add your own icon for the "Switch Menu" (which is an "integrated" game), you must name your image switch.

This is the main reason why using my application id won't be useful to you, as you won't be able to add images. Better do it yourself ! :)