Add Rich Presence button with link to website
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user