You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Whenever I start my game with this simple script attached to a Node (I'm using Godot Mono), Rich Presence doesn't show up
using Godot;
using System;
using DiscordRPC;
public class RichPresence : Node
{
public DiscordRpcClient client;
//[Export]
public int level = 0;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
client = new DiscordRpcClient("761541156173250580");
//UInt64 unixSeconds = Convert.ToUInt64(DateTimeOffset.Now.ToUnixTimeSeconds());
//GD.Print(unixSeconds.ToString());
/*if (level > 0) {
client.SetPresence(new DiscordRPC.RichPresence()
{
Details = "Level 1-"+level.ToString(),
State = "Singleplayer",
//Timestamps = unixSeconds,
Assets = new Assets() {
LargeImageKey = "gamejoltbannersquare",
LargeImageText = "Best videogioco ever"
}
});
} else {*/
client.SetPresence(new DiscordRPC.RichPresence()
{
Details = "Idling",
//Timestamps = unixSeconds,
Assets = new Assets() {
LargeImageKey = "gamejoltbannersquare",
LargeImageText = "Best videogioco ever"
}
});
//}
client.Initialize();
}
// // Called every frame. 'delta' is the elapsed time since the previous frame.
// public override void _Process(float delta)
// {
//
// }
}
To Reproduce
Steps to reproduce the behavior:
Create a Node
Attach the script below
Build and run the project
Expected behavior
My discord status should show up.
Desktop (please complete the following information):
OS: Windows 10 Pro
Framework: .NET 4.0
Version: 1.0.150
The text was updated successfully, but these errors were encountered:
Describe the bug
Whenever I start my game with this simple script attached to a Node (I'm using Godot Mono), Rich Presence doesn't show up
To Reproduce
Steps to reproduce the behavior:
Expected behavior
My discord status should show up.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: