public void Click() { long timeToAdd = DiscordTime.TimeNow(); DiscordTime.AddTime(ref timeToAdd, 30); PresenceManager.UpdatePresence(null, end: timeToAdd); }
public void InGame(int charid) { presence.state = "Playing " + GameManager.Instance.CharacterData[charid].CharacterName; presence.details = "In Game"; presence.largeImageKey = "char_" + GameManager.Instance.CharacterData[charid].CharacterName.ToLower().Replace(" ", string.Empty); presence.startTimestamp = DiscordTime.TimeNow(); DiscordRpc.UpdatePresence(presence); }