using HarmonyLib; using System; namespace RoomCodeObscurer.Patches { [HarmonyPatch(typeof(DiscordManager), nameof(DiscordManager.SetPresence))] internal class DiscordManagerSetPrecencePatch { static void Prefix(ref string state, ref string detail) { if (detail == "Playing Multiplayer") state = CopyCodeMP.GetCodeDisplay(state); } } }