diff --git a/OpenRA.Mods.Common/DiscordService.cs b/OpenRA.Mods.Common/DiscordService.cs index 0a1b39ff03..ff5a70e93d 100644 --- a/OpenRA.Mods.Common/DiscordService.cs +++ b/OpenRA.Mods.Common/DiscordService.cs @@ -79,6 +79,9 @@ namespace OpenRA.Mods.Common client.SetSubscription(EventType.Join | EventType.JoinRequest); client.Initialize(); + + // Set an initial value for the rich presence to avoid a NRE in the library + client.SetPresence(new RichPresence()); } void OnJoinRequested(object sender, JoinRequestMessage args)