Add Rich Presence button with link to website

This commit is contained in:
teinarss
2021-09-21 18:34:58 +02:00
committed by abcdefg30
parent 2424ddc79a
commit 9eab92e90a
2 changed files with 10 additions and 2 deletions

View File

@@ -168,7 +168,15 @@ namespace OpenRA.Mods.Common
},
Timestamps = timestamp.HasValue ? new Timestamps(timestamp.Value) : null,
Party = party,
Secrets = secrets
Secrets = secrets,
Buttons = new[]
{
new Button
{
Label = "Visit Website",
Url = Game.ModData.Manifest.Metadata.Website
}
}
};
client.SetPresence(richPresence);

View File

@@ -5,7 +5,7 @@
</ProjectReference>
<PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" />
<PackageReference Include="OpenRA-FuzzyLogicLibrary" Version="1.0.1" />
<PackageReference Include="DiscordRichPresence" Version="1.0.150" />
<PackageReference Include="DiscordRichPresence" Version="1.0.175" />
<PackageReference Include="MP3Sharp" Version="1.0.5" />
<PackageReference Include="NVorbis" Version="0.10.3" />
<PackageReference Include="TagLibSharp" Version="2.2.0" />