Discord Rich Presence
Last Update: 24/03/2024 17:44:15
Author: TT
Loading...
# Introduction
Discord Rich Presence displays the game information (whether if client is in menu, browsing servers, playing campaign or in a server)
in Discord.
# Customization
Mod developers can customize their client's Discord Rich Presence to display the mod information instead of default C&C Renegade.
Note that customizing this feature requires a Discord account.
## Step 1: Creating a Discord application
Visit [Discord Developer Portal](https://discord.com/developers/applications) and create your Discord application with the name,
icon and description of your mod.
## Step 2: Assets
Feature has 2 states to display big game logo. One when team icon at the right bottom corner of game logo in Rich Presence is displayed,
and one when it is not displayed. Having 2 states allows developers to define game logos with different sizes so team logo won't overlap
game logo. An asset named **gameicon** is displayed when team icon is not displayed in Rich Presence, and **gamelogo** is displayed
when team icon is displayed.
Developers should upload a full size game icon as **gameicon**, and preferably a resized smaller version of logo anchored to left top
corner as **gamelogo**.
As for team icons, they should be named `team`, and team ID suffixed into the name. (For example, **team0** for Nod,
**team1** for GDI)
## Step 3: Configuration
Create `tt-discord.ini` in your game's data folder. Both `<base game folder>\Data` and `<base game folder>\Renegade\Client`
(or custom paths as defined in `paths.ini`) are OK. A typical `tt-discord.ini` looks like this:
```
[General]
DiscordAppID=000000000000000000
DiscordShowTeamIcon=true
DiscordFormatMissionNames=true
```
### DiscordAppID
This should be your Discord application ID. By default, it is the Discord application ID for C&C Renegade.
### DiscordShowTeamIcon
This option determines whether to display team icon in Rich Presence or not. If this option is disabled, **gamelogo** asset as detailed
in Step 2 will never be used.
### DiscordFormatMissionNames
This option displays the translation of mission map names as defined in TDB, instead of displaying the map name.